Restore build_zip from translators directory as build_translators_zip

This commit is contained in:
Dan Stillman 2011-10-27 02:16:17 -04:00
parent 6f165c9f65
commit 55c414894a

20
build_translators_zip Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
if [ -f translators.zip ]; then
rm translators.zip
fi
if [ ! -d output ]; then
mkdir output;
fi
counter=0;
for file in *.js; do
newfile=$counter.js;
cp "$file" output/$newfile;
counter=$(($counter+1));
done;
cd output
zip ../translators.zip *
cd ..
rm -rf output
mv translators.zip ..