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

Side by Side Diff: chrome/third_party/jstemplate/compile.sh

Issue 119384: Update JSTemplate to the latest version from Google Code (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/third_party/jstemplate/base.js ('k') | chrome/third_party/jstemplate/dom.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # A shell script that combines the javascript files needed by jstemplate into 2 # A shell script that combines the javascript files needed by jstemplate into
3 # a single file. 3 # a single file.
4 4
5 SRCS="base.js dom.js util.js jstemplate.js" 5 SRCS="util.js jsevalcontext.js jstemplate.js exports.js"
6 OUT="jstemplate_compiled.js" 6 OUT="jstemplate_compiled.js"
7 7
8 # TODO(tc): We should use an open source JS compressor/compiler to reduce 8 # TODO(tc): We should use an open source JS compressor/compiler to reduce
9 # the size of our JS code. 9 # the size of our JS code.
10 10
11 # Stripping // comments is trivial, so we'll do that at least. 11 # Stripping // comments is trivial, so we'll do that at least.
12 cat $SRCS | grep -v '^ *//' > $OUT 12 echo "(function(){" > $OUT
13 cat $SRCS | grep -v '^ *//' >> $OUT
14 echo "})()" >> $OUT
OLDNEW
« no previous file with comments | « chrome/third_party/jstemplate/base.js ('k') | chrome/third_party/jstemplate/dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698