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

Side by Side Diff: chrome_frame/cfinstall/build.sh

Issue 8467005: Publish the source for CFInstall.min.js . (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Line length fixes. Created 9 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/sh
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 OPTIMIZATION_LEVEL="ADVANCED_OPTIMIZATIONS"
7 EXTRA_FLAGS=""
8
9 while getopts l:d o
10 do case "$o" in
11 l) EXTRA_FLAGS="$EXTRA_FLAGS -f --define=google.cf.installer.Prompt.\
12 DEFAULT_IMPLEMENTATION_URL='${OPTARG}cf-xd-install-impl.js'";;
13 d) OPTIMIZATION_LEVEL="SIMPLE_OPTIMIZATIONS"
14 EXTRA_FLAGS="$EXTRA_FLAGS -f --formatting=PRETTY_PRINT";;
15 [?]) echo >&2 "Usage: $0 [-l //host.com/path/to/scripts/dir/] [-p] [-d]"
16 echo >&2 " -l <URL> The path under which the generated"
17 echo >&2 " scripts will be deployed."
18 echo >&2 " -d Disable obfuscating optimizations."
19 exit 1;;
20 esac
21 done
22
23 DEPS_DIR=deps
24 OUT_DIR=out
25 SRC_DIR=src
26 CLOSURE_LIBRARY_DIR=$DEPS_DIR/closure_library
27 CLOSURE_BUILDER=$CLOSURE_LIBRARY_DIR/closure/bin/build/closurebuilder.py
28 CLOSURE_COMPILER_ZIP=$DEPS_DIR/compiler-latest.zip
29 CLOSURE_COMPILER_JAR_ZIP_RELATIVE=compiler.jar
30 CLOSURE_COMPILER_JAR=$DEPS_DIR/$CLOSURE_COMPILER_JAR_ZIP_RELATIVE
31
32 mkdir -p $DEPS_DIR &&
33 mkdir -p $OUT_DIR &&
34 { [[ -e $CLOSURE_LIBRARY_DIR ]] || \
35 svn checkout http://closure-library.googlecode.com/svn/trunk/ \
36 $CLOSURE_LIBRARY_DIR; } && \
37 { [[ -e $CLOSURE_COMPILER_JAR ]] ||
38 { wget http://closure-compiler.googlecode.com/files/compiler-latest.zip \
39 -O $CLOSURE_COMPILER_ZIP && \
40 unzip -d $DEPS_DIR $CLOSURE_COMPILER_ZIP \
41 $CLOSURE_COMPILER_JAR_ZIP_RELATIVE >/dev/null; }; } &&
42 $CLOSURE_BUILDER \
43 --root=$CLOSURE_LIBRARY_DIR --root=src/common/ \
44 --root=src/implementation/ \
45 --namespace="google.cf.installer.CrossDomainInstall" \
46 --output_mode=compiled --compiler_jar=$CLOSURE_COMPILER_JAR \
47 $EXTRA_FLAGS \
48 -f "--compilation_level=$OPTIMIZATION_LEVEL" \
49 -f "--output_wrapper='(function (scope){ %output% })(window)'" \
50 -f "--externs=src/common/cf-interactiondelegate-externs.js" \
51 --output_file=out/cf-xd-install-impl.js && \
52 $CLOSURE_BUILDER \
53 --root=src/miniclosure/ --root=src/common/ \
54 --root=src/stub/ \
55 --namespace="google.cf.installer.CFInstall" \
56 --output_mode=compiled --compiler_jar=$CLOSURE_COMPILER_JAR \
57 $EXTRA_FLAGS \
58 -f "--compilation_level=$OPTIMIZATION_LEVEL" \
59 -f "--output_wrapper='(function (scope){ %output% })(window)'" \
60 -f "--externs=src/stub/cf-activex-externs.js" \
61 -f "--externs=src/common/cf-interactiondelegate-externs.js" \
62 --output_file=out/CFInstall.min.js
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698