]> dev.renevier.net Git - syj.git/blobdiff - scripts/release.py
allow release if yui-compressor is called yuicompressor
[syj.git] / scripts / release.py
index 9a1b4d2959fc65726bdf282827dc35bbcc6147e8..3c5ded2be7eaf0dab35997879cb08ad7ae810ad5 100755 (executable)
@@ -30,7 +30,10 @@ def updateversion():
 
 def compress(path):
     tmpout = tempfile.TemporaryFile()
-    subprocess.Popen(['yui-compressor', path], stdout=tmpout).communicate()
+    try:
+        subprocess.Popen(['yui-compressor', path], stdout=tmpout).communicate()
+    except OSError:
+        subprocess.Popen(['yuicompressor', path], stdout=tmpout).communicate()
     tmpout.seek(0)
     with open(path, 'w') as output:
         output.write(tmpout.read())