X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/57f70c51120a6d154581a9b31e27a3b7a54ea8bb..00238eb840d539a30fe92d33f7d1507b0073c25f:/bin/compile.py diff --git a/bin/compile.py b/bin/compile.py index e5fb0c2..da2e198 100644 --- a/bin/compile.py +++ b/bin/compile.py @@ -11,7 +11,7 @@ class MinifyException(Exception): def jarit(src): try: - p = subprocess.Popen(["java", "-jar", "bin/yuicompressor-2.4.2.jar", src], stdout=subprocess.PIPE, shell=os.name == "nt") + p = subprocess.Popen(["java", "-jar", "bin/yuicompressor-2.4.8.jar", src], stdout=subprocess.PIPE, shell=os.name == "nt") except Exception, e: if hasattr(e, "errno") and e.errno == 2: raise MinifyException, "unable to run java" @@ -61,6 +61,8 @@ def merge_files(output, files, root_path=lambda x: x): f = open(output, "wb") for x in files: + if x.startswith("//"): + continue f2 = open(root_path(x), "rb") f.write(f2.read() + "\n") f2.close() @@ -139,4 +141,4 @@ def vcheck(): if __name__ == "__main__": main() - \ No newline at end of file +