check for duplicate call
This commit is contained in:
parent
40c9d92b9a
commit
4dc1fc16d5
|
@ -2,20 +2,23 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
outFile=templates/lib/100_lam.${SOURCE_DATE_EPOCH}.min.js
|
outFile=templates/lib/100_lam.${SOURCE_DATE_EPOCH}.min.js
|
||||||
files=`ls templates/lib/*.js`
|
if [ ! -e $outFile ]; then
|
||||||
jsFiles=""
|
files=`ls templates/lib/*.js`
|
||||||
for file in $files; do
|
jsFiles=""
|
||||||
jsFiles="$jsFiles --js $file"
|
for file in $files; do
|
||||||
done
|
jsFiles="$jsFiles --js $file"
|
||||||
closure-compiler --charset UTF-8 $jsFiles --js_output_file $outFile
|
done
|
||||||
rm $files
|
closure-compiler --charset UTF-8 $jsFiles --js_output_file $outFile
|
||||||
# add final new line to supress Debian warnings
|
rm $files
|
||||||
echo "" >> $outFile
|
# add final new line to supress Debian warnings
|
||||||
|
echo "" >> $outFile
|
||||||
|
fi
|
||||||
|
|
||||||
files=`ls style/*.css`
|
files=`ls style/*.css`
|
||||||
outFile=style/100_lam.${SOURCE_DATE_EPOCH}.min.css
|
outFile=style/100_lam.${SOURCE_DATE_EPOCH}.min.css
|
||||||
cat $files | cleancss -o ${outFile}
|
if [ ! -e $outFile ]; then
|
||||||
rm $files
|
cat $files | cleancss -o ${outFile}
|
||||||
# add final new line to supress Debian warnings
|
rm $files
|
||||||
echo "" >> $outFile
|
# add final new line to supress Debian warnings
|
||||||
|
echo "" >> $outFile
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue