2008-09-12 22:09:54 +00:00
|
|
|
#!/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;
|
2008-09-15 06:25:44 +00:00
|
|
|
counter=$(($counter+1));
|
2008-09-12 22:09:54 +00:00
|
|
|
done;
|
|
|
|
|
|
|
|
cd output
|
|
|
|
zip ../translators.zip *
|
|
|
|
cd ..
|
|
|
|
rm -rf output
|
2008-09-15 06:25:44 +00:00
|
|
|
mv translators.zip ..
|