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

Unified Diff: third_party/dom_distiller_js/update_domdistiller_js.sh

Issue 278143003: Revert of Update DomDistillerJsUpdater and Roll DomDistillerJs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « third_party/dom_distiller_js/package/proto_gen/dom_distiller_js/dom_distiller_json_converter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4564e935d6c873bd566a5747d66605ab3289f996..c1f7068d342e37c627e72b3b1121577f3bb9ffd1 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
- dom_distiller_js_package=$dom_distiller_js_path/package
+ compiled_js_path=$dom_distiller_js_path/js/domdistiller.js
readme_chromium=$dom_distiller_js_path/README.chromium
tmpdir=/tmp/domdistiller-$$
changes=/tmp/domdistiller.changes
@@ -23,14 +23,13 @@
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
- rm -rf $dom_distiller_js_package
- mkdir $dom_distiller_js_package
- cp -rf $tmpdir/out/package/* $dom_distiller_js_package
+ mkdir -p $(dirname $compiled_js_path)
+ cp $tmpdir/out/domdistiller.js $compiled_js_path
cp $tmpdir/LICENSE $dom_distiller_js_path/
sed -i "s/Version: [0-9a-f]*/Version: $new_gitsha/" $readme_chromium
« no previous file with comments | « third_party/dom_distiller_js/package/proto_gen/dom_distiller_js/dom_distiller_json_converter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698