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

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

Issue 2982143002: First step to removing dartium from IDL generation in TIP of master. (Closed)
Patch Set: Created 3 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 | « no previous file | 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 # 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"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698