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

Side by Side Diff: tools/dartium/generate_patches.sh

Issue 1833373002: Speed up interop patch file creation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Requires latest change to WebKit Created 4 years, 8 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 | « tools/dartium/generate_app/generate_cached_patches.html ('k') | tools/deps/dartium.deps/DEPS » ('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 #!/usr/bin/env bash
2 #
3
4 set -x
5
6 # generate_patches.sh [systems]
7 #
8 # Convenience script to generate patches for JsInterop under Dartium. Do not ca ll from build steps or tests
9 # - call fremontcutbuilder and dartdomgenerator instead. Do not add 'real'
10 # functionality here - change the python code instead.
11 #
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:
14 #
15 # ./go.sh
16
17 # 1. After running go.sh libraries in sdk/lib may change.
18 # 2. Build Dartium.
19 # 3. Run this script and sdk/lib/js/dartium/cached_patches will be created.
20 # 4. Rebuild Dartium.
21 # 5. Commit files in sdk/lib
22
23 LOCATION_DARTIUM="../../../out/Release"
24 DARTIUM="$LOCATION_DARTIUM"
25
26 DART_APP_LOCATION="file://"$PWD"/generate_app/generate_cached_patches.html"
27 DARTIUM_ARGS=" --user-data-dir=out --disable-web-security --no-sandbox --enable- logging=stderr"
28 CACHED_PATCHES_FILE=""$PWD"/../../sdk/lib/js/dartium/cached_patches.dart"
29
30 if [[ "$1" != "" ]] ; then
31 DARTIM="$1"
32 fi
33
34 cmd=""$DARTIUM"/chrome "$DARTIUM_ARGS" "$DART_APP_LOCATION" 3>&1 1>&2- 2>&3 | \
35 (sed -n '/START_OF_CACHED_PATCHES/,/END_OF_CACHED_PATCHES/p') > "$CACHED_PATCH ES_FILE""
36
37 reset && eval "${cmd}"
38
39
OLDNEW
« no previous file with comments | « tools/dartium/generate_app/generate_cached_patches.html ('k') | tools/deps/dartium.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698