summaryrefslogtreecommitdiffstats
path: root/chrome/third_party/jstemplate/compile.sh
blob: f091fbb0348ef610b6b7322922aaf22c72fd10fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# A shell script that combines the javascript files needed by jstemplate into
# a single file.

SRCS="base.js dom.js util.js jstemplate.js"
OUT="jstemplate_compiled.js"

# TODO(tc): We should use an open source JS compressor/compiler to reduce
# the size of our JS code.

# Stripping // comments is trivial, so we'll do that at least.
cat $SRCS | grep -v '^ *//' > $OUT