Index: tools/dartium/generate_patches.sh |
diff --git a/tools/dartium/generate_patches.sh b/tools/dartium/generate_patches.sh |
index ec2011a40c27a29460e13c3a76d7c898fb1e90cb..40dc895e4cee259d2ed43bd830ee2d3c8f094e4d 100755 |
--- a/tools/dartium/generate_patches.sh |
+++ b/tools/dartium/generate_patches.sh |
@@ -13,25 +13,31 @@ set -x |
# other systems. My habit is to run: |
# |
# ./go.sh |
- |
+# |
# 1. After running go.sh libraries in sdk/lib may change. |
# 2. Build Dartium. |
# 3. Run this script and sdk/lib/js/dartium/cached_patches will be created. |
# 4. Rebuild Dartium. |
# 5. Commit files in sdk/lib |
+# |
+# NOTE: If the Dart files generated from the IDLs may cause major changes which |
+# could cause the patch files to fail (missing classes, etc). If this |
+# happens delete the contents of the sdk/lib/js/dartium/cached_patches.dart |
+# build Dartium, run this script and build Dartium again with the newly |
+# generated patches. |
LOCATION_DARTIUM="../../../out/Release" |
DARTIUM="$LOCATION_DARTIUM" |
DART_APP_LOCATION="file://"$PWD"/generate_app/generate_cached_patches.html" |
-DARTIUM_ARGS=" --user-data-dir=out --disable-web-security --no-sandbox --enable-logging=stderr" |
+DARTIUM_ARGS=" --user-data-dir=out --disable-web-security --no-sandbox --enable-blink-features=dartGenCachedPatches" |
CACHED_PATCHES_FILE=""$PWD"/../../sdk/lib/js/dartium/cached_patches.dart" |
if [[ "$1" != "" ]] ; then |
DARTIM="$1" |
fi |
-cmd=""$DARTIUM"/chrome "$DARTIUM_ARGS" "$DART_APP_LOCATION" 3>&1 1>&2- 2>&3 | \ |
+cmd=""$DARTIUM"/chrome "$DARTIUM_ARGS" "$DART_APP_LOCATION" | |
(sed -n '/START_OF_CACHED_PATCHES/,/END_OF_CACHED_PATCHES/p') > "$CACHED_PATCHES_FILE"" |
reset && eval "${cmd}" |