- always create Litmus.js even if jsmin isn't present

This commit is contained in:
ccooper%deadsquid.com 2007-12-21 15:24:47 +00:00
Родитель 36469a470b
Коммит 5bf2d25fa9
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1,11 +1,5 @@
#!/bin/bash
minify=`which jsmin 2>/dev/null`
if [ "XXX$minify" == "XXX" -o ! -e "$minify" ]; then
echo "jsmin not found in \$PATH. Skipping JS minification"
exit 0
fi
# Create a single master JS file out of our littler files.
# This cuts down the number of HTTP requests, and with content
# deflation (gzip) the initial download still isn't that bad.
@ -38,6 +32,12 @@ cat Help.js \
# From js/:
# for i in `find . | grep '\.js'`; do rm $i; done; cvs update -dP
minify=`which jsmin 2>/dev/null`
if [ "XXX$minify" == "XXX" -o ! -e "$minify" ]; then
echo "jsmin not found in \$PATH. Skipping JS minification"
exit 0
fi
for i in `find . -name \*.js -print 2>/dev/null`; do
echo -n "Minifying $i..."
cp $i $i.preminify