mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-27 13:11:22 +01:00
17 lines
No EOL
294 B
Bash
Executable file
17 lines
No EOL
294 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
FILES="../../js";
|
|
else
|
|
FILES=$1;
|
|
fi
|
|
|
|
|
|
for f in $FILES/*.js;
|
|
do
|
|
if [[ $f != *".min"* ]]; then
|
|
echo "Processing $f ..."
|
|
echo "java -jar yuicompressor-2.4.8.jar $f -o ${f%.js}.min.js"
|
|
java -jar yuicompressor-2.4.8.jar $f -o ${f%.js}.min.js
|
|
fi
|
|
done |