mirror of
https://github.com/zotero/zotero.git
synced 2026-09-19 00:01:31 +00:00
20 lines
304 B
Bash
Executable file
20 lines
304 B
Bash
Executable file
#!/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 ..
|