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 |
new file mode 100755 |
index 0000000000000000000000000000000000000000..9b9d6bc2331ab43f4b8e4b01ca62e34be5964f51 |
--- /dev/null |
+++ b/third_party/dom_distiller_js/update_domdistiller_js.sh |
@@ -0,0 +1,27 @@ |
+#!/bin/bash |
+# |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+# |
+ |
+# Clones the dom-distiller repo, compiles and extracts its javascript Then |
+# copies that js into the Chromium tree. |
+ |
+( |
+ compiled_js_path=third_party/dom_distiller_js/js/domdistiller.js |
nyquist
2014/02/26 00:30:15
Does this require running the script from src/? If
cjhopman
2014/02/27 02:43:09
Done.
|
+ tmpdir=/tmp/domdistiller-$$ |
+ |
+ rm -rf $tmpdir |
+ mkdir $tmpdir |
+ |
+ pushd $tmpdir |
+ git clone https://code.google.com/p/dom-distiller/ . |
+ ant extractjs |
nyquist
2014/02/26 00:30:15
Does all checkouts have ant? Otherwise, could you
Yaron
2014/02/26 02:50:50
No they don't. Only android checkouts have it so +
cjhopman
2014/02/27 02:43:09
Done.
|
+ popd |
+ |
+ mkdir -p $(dirname $compiled_js_path) |
+ cp $tmpdir/out/domdistiller.js $compiled_js_path |
+ |
+ rm -rf $tmpdir |
+) |