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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/dartdomgenerator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/go.sh
diff --git a/tools/dom/scripts/go.sh b/tools/dom/scripts/go.sh
index a830a9b7d99efe98c03ee2f8dcdc313a0d05f9bf..99c4e72377a4feff26531041ec331c8ed6f84e19 100755
--- a/tools/dom/scripts/go.sh
+++ b/tools/dom/scripts/go.sh
@@ -20,6 +20,12 @@ set -x
#
# ./go.sh dart2js,htmldartium
#
+# To re-gen all sdk/lib files (outside of a Dartium enlistment the file
+# 'sdk/lib/js/cached_patches.dart' might not need to be generated). To run
+# go.sh w/o the patches files used --no-cached-patches switch e.g.,
+#
+# ./go.sh --no-cached-patches
+#
# The following gives a picture of the changes due to 'work'
#
# git checkout master # select client without changes
@@ -33,8 +39,20 @@ ALLSYSTEMS="htmldart2js,htmldartium,_blink"
SYSTEMS="$ALLSYSTEMS"
if [[ "$1" != "" ]] ; then
- SYSTEMS="$1"
+ if [[ "$1" =~ ^-- ]]; then
+ ARG_OPTION="$1"
+ else
+ SYSTEMS="$1"
+ fi
+fi
+
+if [[ "$2" != "" ]] ; then
+ if [[ "$2" =~ ^-- ]]; then
+ ARG_OPTION="$2"
+ else
+ SYSTEMS="$2"
+ fi
fi
reset && \
-./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata --gen-interop
+./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata --gen-interop "$ARG_OPTION"
« 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