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

Unified Diff: third_party/dom_distiller_js/update_domdistiller_js.sh

Issue 176083002: Use boilerpipe-based dom-distiller-js (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
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
+)

Powered by Google App Engine
This is Rietveld 408576698