Chromium Code Reviews| Index: lib/dom/scripts/go.sh |
| diff --git a/lib/dom/scripts/go.sh b/lib/dom/scripts/go.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..c8c0f991f552e3b8fba635addd36a5a0790e82f2 |
| --- /dev/null |
| +++ b/lib/dom/scripts/go.sh |
| @@ -0,0 +1,53 @@ |
| +#!/bin/bash -x |
| +# |
| +# go.sh [--cached] [systems] |
| +# |
| +# Convenience script to generate systems. Do not call from build steps or tests |
| +# - call fremontcutbuilder and dartdomgenerator instead. Do not add 'real' |
| +# functionality here - change the python code instead. |
| +# |
| +# I find it essential to generate all the systems so I know if I am breaking |
| +# other systems. My habit is to run: |
| +# |
| +# ./go.sh | tee Q |
| +# |
| +# I can inspect file Q if needed. |
| +# |
| +# If I know the IDL has not changed since the last run, it is faster to run |
| +# |
| +# ./go.sh --cached |
| +# |
| +# To generate a subset of systems: |
| +# |
| +# ./go.sh frog,htmlfrog |
| +# |
| +# The following gives a picture of the changes due to 'work' |
| +# |
| +# git checkout master # select client without changes |
| +# ./go.sh |
| +# mv ../generated ../generated0 # save generated files |
| +# git checkout work # select client with changes |
| +# ./go.sh |
| +# meld ../generated0 ../generated # compare directories with too |
| + |
| +CACHED= |
| +if [[ "$1" == "--cached" ]] ; then |
| + CACHED=1 |
| + shift |
| +fi |
| + |
| +ALLSYSTEMS="frog,dummy,native,htmlfrog,htmldartium,native" |
|
podivilov
2012/05/21 10:56:11
native appears twice in this list.
sra1
2012/05/21 16:31:17
Thanks!
|
| +SYSTEMS="$ALLSYSTEMS" |
| + |
| +if [[ "$1" != "" ]] ; then |
| + SYSTEMS="$1" |
| +fi |
| + |
| +if [[ $CACHED ]] ; then |
| + reset && |
| + ./dartdomgenerator.py --use-database-cache --systems="$SYSTEMS" |
| +else |
| + reset && |
| + ./fremontcutbuilder.py && |
| + ./dartdomgenerator.py --systems="$SYSTEMS" |
| +fi |