]> dev.renevier.net Git - syj.git/blobdiff - scripts/release.py
update OpenLayers and put syj.cfg outside OpenLayers directory
[syj.git] / scripts / release.py
index a1d30e44312b9f7a7050f727d249000de6b50275..ca83a2a12ba457c6896d0ca875662c8131c5812a 100755 (executable)
@@ -26,9 +26,9 @@ def genscripts():
         shutil.copy(path, tmpdir)
 
     # build OpenLayers.js
-    subprocess.call(['python', 'buildUncompressed.py', 'syj'],
+    subprocess.call(['python', 'buildUncompressed.py',
+                     pathjoin(os.getcwd(), "scripts/syj"), pathjoin(tmpdir, "OpenLayers.js")],
                      cwd = 'public/openlayers/openlayers/build')
-    shutil.copy('public/openlayers/openlayers/build/OpenLayers.js', tmpdir)
 
     config = ConfigParser.ConfigParser()
     os.makedirs(pathjoin(TARGET, 'public/js'))