From 55c414894a82010057a286dc8dcb5eb9b21a35b3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 27 Oct 2011 02:16:17 -0400 Subject: [PATCH] Restore build_zip from translators directory as build_translators_zip --- build_translators_zip | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 build_translators_zip diff --git a/build_translators_zip b/build_translators_zip new file mode 100755 index 0000000000..9dc0abf820 --- /dev/null +++ b/build_translators_zip @@ -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 ..