LDAPAccountManager/lam-packaging/debian/minify

23 lines
435 B
Plaintext
Raw Normal View History

2014-03-08 13:37:43 +00:00
#!/bin/bash
set -e
2017-04-02 13:35:06 +00:00
files=`ls templates/lib/*.js`
2014-03-08 13:37:43 +00:00
for file in $files; do
2017-04-02 13:42:57 +00:00
closure-compiler --charset UTF-8 --js $file --js_output_file ${file}-MIN
2014-03-08 13:37:43 +00:00
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings
echo "" >> $file
done
2017-04-02 13:35:06 +00:00
files=`ls style/*.css`
for file in $files; do
2017-04-02 13:42:57 +00:00
cleancss -o ${file}-MIN $file
2017-04-02 13:35:06 +00:00
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings
echo "" >> $file
done
2014-03-08 13:37:43 +00:00