Restore build_zip from translators directory as build_translators_zip
This commit is contained in:
parent
6f165c9f65
commit
55c414894a
20
build_translators_zip
Executable file
20
build_translators_zip
Executable 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 ..
|
Loading…
Reference in New Issue
Block a user