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

Unified Diff: third_party/dom_distiller_js/update_domdistiller_js.sh

Issue 277563002: Update DomDistillerJsUpdater and Roll DomDistillerJs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pull one more change Created 6 years, 7 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
Index: third_party/dom_distiller_js/update_domdistiller_js.sh
diff --git a/third_party/dom_distiller_js/update_domdistiller_js.sh b/third_party/dom_distiller_js/update_domdistiller_js.sh
index c1f7068d342e37c627e72b3b1121577f3bb9ffd1..4564e935d6c873bd566a5747d66605ab3289f996 100755
--- a/third_party/dom_distiller_js/update_domdistiller_js.sh
+++ b/third_party/dom_distiller_js/update_domdistiller_js.sh
@@ -12,7 +12,7 @@
(
dom_distiller_js_path=third_party/dom_distiller_js
- compiled_js_path=$dom_distiller_js_path/js/domdistiller.js
+ dom_distiller_js_package=$dom_distiller_js_path/package
readme_chromium=$dom_distiller_js_path/README.chromium
tmpdir=/tmp/domdistiller-$$
changes=/tmp/domdistiller.changes
@@ -23,13 +23,14 @@
pushd $tmpdir
git clone https://code.google.com/p/dom-distiller/ .
- ant extractjs
new_gitsha=$(git rev-parse --short=10 HEAD)
git log --oneline ${curr_gitsha}.. > $changes
+ ant package
popd
- mkdir -p $(dirname $compiled_js_path)
- cp $tmpdir/out/domdistiller.js $compiled_js_path
+ rm -rf $dom_distiller_js_package
+ mkdir $dom_distiller_js_package
+ cp -rf $tmpdir/out/package/* $dom_distiller_js_package
cp $tmpdir/LICENSE $dom_distiller_js_path/
sed -i "s/Version: [0-9a-f]*/Version: $new_gitsha/" $readme_chromium

Powered by Google App Engine
This is Rietveld 408576698