OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 # | 2 # |
3 | 3 |
4 set -x | 4 set -x |
5 | 5 |
6 # go.sh [systems] | 6 # go.sh [systems] |
7 # | 7 # |
8 # Convenience script to generate systems. Do not call from build steps or tests | 8 # Convenience script to generate systems. Do not call from build steps or tests |
9 # - call fremontcutbuilder and dartdomgenerator instead. Do not add 'real' | 9 # - call fremontcutbuilder and dartdomgenerator instead. Do not add 'real' |
10 # functionality here - change the python code instead. | 10 # functionality here - change the python code instead. |
11 # | 11 # |
12 # I find it essential to generate all the systems so I know if I am breaking | 12 # I find it essential to generate all the systems so I know if I am breaking |
13 # other systems. My habit is to run: | 13 # other systems. My habit is to run: |
14 # | 14 # |
15 # ./go.sh | tee Q | 15 # ./go.sh | tee Q |
16 # | 16 # |
17 # I can inspect file Q if needed. | 17 # I can inspect file Q if needed. |
18 # | 18 # |
19 # To generate a subset of systems: | 19 # Re-gen all sdk/lib files |
20 # | |
21 # ./go.sh dart2js,htmldartium | |
22 # | |
23 # To re-gen all sdk/lib files (outside of a Dartium enlistment the file | |
24 # 'sdk/lib/js/cached_patches.dart' might not need to be generated). To run | |
25 # go.sh w/o the patches files used --no-cached-patches switch e.g., | |
26 # | |
27 # ./go.sh --no-cached-patches | |
28 # | 20 # |
29 # The following gives a picture of the changes due to 'work' | 21 # The following gives a picture of the changes due to 'work' |
30 # | 22 # |
31 # git checkout master # select client without changes | 23 # git checkout master # select client without changes |
32 # ./go.sh | 24 # ./go.sh |
33 # mv ../generated ../generated0 # save generated files | 25 # mv ../generated ../generated0 # save generated files |
34 # git checkout work # select client with changes | 26 # git checkout work # select client with changes |
35 # ./go.sh | 27 # ./go.sh |
36 # meld ../generated0 ../generated # compare directories with too | 28 # meld ../generated0 ../generated # compare directories with too |
37 | 29 |
38 ALLSYSTEMS="htmldart2js,htmldartium,_blink" | 30 SYSTEMS="htmldart2js" |
39 SYSTEMS="$ALLSYSTEMS" | |
40 | 31 |
41 if [[ "$1" != "" ]] ; then | 32 if [[ "$1" != "" ]] ; then |
42 if [[ "$1" =~ ^-- ]]; then | 33 if [[ "$1" =~ ^-- ]]; then |
43 ARG_OPTION="$1" | 34 ARG_OPTION="$1" |
44 else | |
45 SYSTEMS="$1" | |
46 fi | 35 fi |
47 fi | 36 fi |
48 | 37 |
49 if [[ "$2" != "" ]] ; then | |
50 if [[ "$2" =~ ^-- ]]; then | |
51 ARG_OPTION="$2" | |
52 else | |
53 SYSTEMS="$2" | |
54 fi | |
55 fi | |
56 | |
57 reset && \ | 38 reset && \ |
58 ./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata --
gen-interop "$ARG_OPTION" | 39 ./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata --
gen-interop "$ARG_OPTION" |
OLD | NEW |