| OLD | NEW |
| 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 |
| OLD | NEW |