OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 # |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 # |
| 7 |
| 8 # Clones the dom-distiller repo, compiles and extracts its javascript Then |
| 9 # copies that js into the Chromium tree. |
| 10 # This script should be run from the src/ directory and requires that ant is |
| 11 # installed. |
| 12 |
| 13 ( |
| 14 compiled_js_path=third_party/dom_distiller_js/js/domdistiller.js |
| 15 tmpdir=/tmp/domdistiller-$$ |
| 16 |
| 17 rm -rf $tmpdir |
| 18 mkdir $tmpdir |
| 19 |
| 20 pushd $tmpdir |
| 21 git clone https://code.google.com/p/dom-distiller/ . |
| 22 ant extractjs |
| 23 popd |
| 24 |
| 25 mkdir -p $(dirname $compiled_js_path) |
| 26 cp $tmpdir/out/domdistiller.js $compiled_js_path |
| 27 |
| 28 rm -rf $tmpdir |
| 29 ) |
OLD | NEW |