23 lines
515 B
Bash
Executable File
23 lines
515 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
env
|
|
outFile=templates/lib/100_lam.${SOURCE_DATE_EPOCH}.min.js
|
|
files=`ls templates/lib/*.js`
|
|
jsFiles=""
|
|
for file in $files; do
|
|
jsFiles="$jsFiles --js $file"
|
|
done
|
|
closure-compiler --charset UTF-8 $jsFiles --js_output_file $outFile
|
|
rm $files
|
|
# add final new line to supress Debian warnings
|
|
echo "" >> $outFile
|
|
|
|
files=`ls style/*.css`
|
|
outFile=style/100_lam.${SOURCE_DATE_EPOCH}.min.css
|
|
cat $files | cleancss -o ${outFile}
|
|
rm $files
|
|
# add final new line to supress Debian warnings
|
|
echo "" >> $file
|
|
|