]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - bin/compile.py
Bump mootools to 1.2.5.
[irc/quakenet/qwebirc.git] / bin / compile.py
index cd71d93b34f8d830b84a0945f92cea7e2bc0129c..151c1ec7cb81f9a9f87e1ad092f335e7dbd76522 100644 (file)
@@ -11,7 +11,7 @@ class MinifyException(Exception):
   
 def jarit(src):
   try:
-    p = subprocess.Popen(["java", "-jar", "bin/yuicompressor-2.3.5.jar", src], stdout=subprocess.PIPE)
+    p = subprocess.Popen(["java", "-jar", "bin/yuicompressor-2.4.2.jar", src], stdout=subprocess.PIPE)
   except Exception, e:
     if hasattr(e, "errno") and e.errno == 2:
       raise MinifyException, "unable to run java"
@@ -62,7 +62,7 @@ def merge_files(output, files, root_path=lambda x: x):
 
   for x in files:
     f2 = open(root_path(x), "rb")
-    f.write(f2.read())
+    f.write(f2.read() + "\n")
     f2.close()
   f.close()