]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Fix compile.sh.
authorChris Porter <redacted>
Wed, 15 Oct 2008 22:28:48 +0000 (23:28 +0100)
committerChris Porter <redacted>
Wed, 15 Oct 2008 22:28:48 +0000 (23:28 +0100)
compile.sh

index 5675fb0a212f92320575ac228f90949afe87f763..2e0a43f381f8aab8d86eb42b169602973c359a07 100755 (executable)
@@ -17,8 +17,8 @@ catit() {
 }
 
 xjarit() {
-  SRC=$1
-  DST=$2
+  local SRC=$1
+  local DST=$2
   cd compiled
   java -jar ../bin/yuicompressor-2.3.5.jar $SRC.js > $DST.js
   if [ "$?" != 0 ]; then
@@ -29,11 +29,11 @@ xjarit() {
 
 jarit() {
   SRC=$1
-  DST=$2-compiled
+  DST=$2
   
-  xjarit $SRC $DST
+  xjarit $SRC $DST-compiled
   catit $DST
-  rm compiled/$DST.js
+  rm compiled/$DST-compiled.js
 }
 
 cd ..