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