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

Side by Side Diff: sdk/lib/html/scripts/go.sh

Issue 11691009: Moved most of html lib generating scripts into tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/scripts/generator.py ('k') | sdk/lib/html/scripts/htmldartgenerator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash -x
2 #
3 # go.sh [--cached] [systems]
4 #
5 # Convenience script to generate systems. Do not call from build steps or tests
6 # - call fremontcutbuilder and dartdomgenerator instead. Do not add 'real'
7 # functionality here - change the python code instead.
8 #
9 # I find it essential to generate all the systems so I know if I am breaking
10 # other systems. My habit is to run:
11 #
12 # ./go.sh | tee Q
13 #
14 # I can inspect file Q if needed.
15 #
16 # If I know the IDL has not changed since the last run, it is faster to run
17 #
18 # ./go.sh --cached
19 #
20 # To generate a subset of systems:
21 #
22 # ./go.sh dart2js,htmldart2js
23 #
24 # The following gives a picture of the changes due to 'work'
25 #
26 # git checkout master # select client without changes
27 # ./go.sh
28 # mv ../generated ../generated0 # save generated files
29 # git checkout work # select client with changes
30 # ./go.sh
31 # meld ../generated0 ../generated # compare directories with too
32
33 CACHED=
34 if [[ "$1" == "--cached" ]] ; then
35 CACHED=1
36 shift
37 fi
38
39 ALLSYSTEMS="htmldart2js,htmldartium"
40 SYSTEMS="$ALLSYSTEMS"
41
42 if [[ "$1" != "" ]] ; then
43 SYSTEMS="$1"
44 fi
45
46 if [[ $CACHED ]] ; then
47 reset &&
48 ./dartdomgenerator.py --use-database-cache --systems="$SYSTEMS"
49 else
50 reset &&
51 ./dartdomgenerator.py --rebuild --parallel --systems="$SYSTEMS"
52 fi
OLDNEW
« no previous file with comments | « sdk/lib/html/scripts/generator.py ('k') | sdk/lib/html/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698