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

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: Add OWNERS for components/resources Created 6 years, 9 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/js/domdistiller.js ('k') | third_party/readability/js/readability.js » ('j') | 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
new file mode 100755
index 0000000000000000000000000000000000000000..10891cd182e74d86a978f9f65d7b64f9ee0078a1
--- /dev/null
+++ b/third_party/dom_distiller_js/update_domdistiller_js.sh
@@ -0,0 +1,33 @@
+#!/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.
+# This script should be run from the src/ directory and requires that ant is
+# installed.
+
+(
+ dom_distiller_js_path=third_party/dom_distiller_js
+ compiled_js_path=$dom_distiller_js_path/js/domdistiller.js
+ tmpdir=/tmp/domdistiller-$$
+
+ rm -rf $tmpdir
+ mkdir $tmpdir
+
+ pushd $tmpdir
+ git clone https://code.google.com/p/dom-distiller/ .
+ ant extractjs
+ gitsha=$(git rev-parse HEAD | head -c 10)
+ popd
+
+ 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: $gitsha/" $dom_distiller_js_path/README.chromium
+
+ rm -rf $tmpdir
+)
« no previous file with comments | « third_party/dom_distiller_js/js/domdistiller.js ('k') | third_party/readability/js/readability.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698