2014-03-08 13:37:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
2017-12-13 15:47:52 +00:00
|
|
|
outFile=templates/lib/100_lam.${SOURCE_DATE_EPOCH}.min.js
|
2017-04-02 13:35:06 +00:00
|
|
|
files=`ls templates/lib/*.js`
|
2017-12-13 15:47:52 +00:00
|
|
|
jsFiles=""
|
2014-03-08 13:37:43 +00:00
|
|
|
for file in $files; do
|
2017-12-13 15:47:52 +00:00
|
|
|
jsFiles="$jsFiles --js $file"
|
2014-03-08 13:37:43 +00:00
|
|
|
done
|
2017-12-13 15:47:52 +00:00
|
|
|
closure-compiler --charset UTF-8 $jsFiles --js_output_file $outFile
|
|
|
|
rm $files
|
|
|
|
# add final new line to supress Debian warnings
|
|
|
|
echo "" >> $outFile
|
2014-03-08 13:37:43 +00:00
|
|
|
|
2017-04-02 13:35:06 +00:00
|
|
|
files=`ls style/*.css`
|
2017-12-13 15:47:52 +00:00
|
|
|
outFile=style/100_lam.${SOURCE_DATE_EPOCH}.min.css
|
|
|
|
cat $files | cleancss -o ${outFile}
|
|
|
|
rm $files
|
|
|
|
# add final new line to supress Debian warnings
|
2017-12-13 15:51:19 +00:00
|
|
|
echo "" >> $outFile
|
2014-03-08 13:37:43 +00:00
|
|
|
|