Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (37 sloc) 0.851 kb
72016ff Einar Lielmanis Add my makefile and cli-spidermonkey-tester
einars authored
1
2 define AVAILABLE_ACTIONS
3
4 publish: publish jsbeautifier to github.com and sync
5 test: test both implementations, js and python
6 testp: test python implementation
7 testj: test javascript implementation
8
9 endef
10 export AVAILABLE_ACTIONS
11
12
13 define SCRIPT_PUBLISH
14
15 open spic
16 cd jsbeautifier.org
17 mirror -Rv attic
18 mirror -Rv jquery
19 mirror -Rv tests
20 mirror -Rv unpackers
21 mirror -Rv python
7e0a89a Einar Lielmanis Update makefile to publish beautify-css.js as well
einars authored
22 put beautify-css.js beautify-html.js beautify.js index.html license.txt README.md
72016ff Einar Lielmanis Add my makefile and cli-spidermonkey-tester
einars authored
23
24 endef
25 export SCRIPT_PUBLISH
26
27
28 .SILENT:
29
30 all:
31 echo "$$AVAILABLE_ACTIONS"
32
33 publish:
34 git push
35 lftp -c "$$SCRIPT_PUBLISH"
36
37 testp:
38 cd python ;\
3449ff7 Einar Lielmanis Run my tests with both pythons
einars authored
39 echo Testing python3 ;\
2fe35d6 Einar Lielmanis js-beautify-test honors $PYTHON env
einars authored
40 PYTHON=python3 ./js-beautify-test ;\
3449ff7 Einar Lielmanis Run my tests with both pythons
einars authored
41 echo Testing python2 ;\
2fe35d6 Einar Lielmanis js-beautify-test honors $PYTHON env
einars authored
42 PYTHON=python2 ./js-beautify-test
72016ff Einar Lielmanis Add my makefile and cli-spidermonkey-tester
einars authored
43 echo
44
45 testj:
46 echo Testing javascript implementation...
47 ./tests/run-tests
48 echo
49
50 tests: testp testj
51
52 test: testp testj
53
Something went wrong with that request. Please try again.