LDAPAccountManager/lam-packaging/debian/minify

23 lines
435 B
Bash
Executable File

#!/bin/bash
set -e
files=`ls templates/lib/*.js`
for file in $files; do
closure-compiler --charset UTF-8 --js $file --js_output_file ${file}-MIN
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings
echo "" >> $file
done
files=`ls style/*.css`
for file in $files; do
cleancss -o ${file}-MIN $file
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings
echo "" >> $file
done