Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: tools/dom/scripts/go.sh

Issue 2154863002: Added switch to disable generating cached_patches.dart file (Dartium only). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/dom/scripts/dartdomgenerator.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # To generate a subset of systems:
20 # 20 #
21 # ./go.sh dart2js,htmldartium 21 # ./go.sh dart2js,htmldartium
22 # 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 #
23 # The following gives a picture of the changes due to 'work' 29 # The following gives a picture of the changes due to 'work'
24 # 30 #
25 # git checkout master # select client without changes 31 # git checkout master # select client without changes
26 # ./go.sh 32 # ./go.sh
27 # mv ../generated ../generated0 # save generated files 33 # mv ../generated ../generated0 # save generated files
28 # git checkout work # select client with changes 34 # git checkout work # select client with changes
29 # ./go.sh 35 # ./go.sh
30 # meld ../generated0 ../generated # compare directories with too 36 # meld ../generated0 ../generated # compare directories with too
31 37
32 ALLSYSTEMS="htmldart2js,htmldartium,_blink" 38 ALLSYSTEMS="htmldart2js,htmldartium,_blink"
33 SYSTEMS="$ALLSYSTEMS" 39 SYSTEMS="$ALLSYSTEMS"
34 40
35 if [[ "$1" != "" ]] ; then 41 if [[ "$1" != "" ]] ; then
36 SYSTEMS="$1" 42 if [[ "$1" =~ ^-- ]]; then
43 ARG_OPTION="$1"
44 else
45 SYSTEMS="$1"
46 fi
47 fi
48
49 if [[ "$2" != "" ]] ; then
50 if [[ "$2" =~ ^-- ]]; then
51 ARG_OPTION="$2"
52 else
53 SYSTEMS="$2"
54 fi
37 fi 55 fi
38 56
39 reset && \ 57 reset && \
40 ./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata -- gen-interop 58 ./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata -- gen-interop "$ARG_OPTION"
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartdomgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698