[OpenLayers-Commits] r11449 - in trunk/openlayers: build tools

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Feb 24 18:48:24 EST 2011


Author: crschmidt
Date: 2011-02-24 15:48:24 -0800 (Thu, 24 Feb 2011)
New Revision: 11449

Modified:
   trunk/openlayers/build/build.py
   trunk/openlayers/tools/update_dev_dir.sh
Log:
Fix build script on python before 2.6, and update_dev_dir now compiles
with closure instead of jsmin.


Modified: trunk/openlayers/build/build.py
===================================================================
--- trunk/openlayers/build/build.py	2011-02-24 23:19:53 UTC (rev 11448)
+++ trunk/openlayers/build/build.py	2011-02-24 23:48:24 UTC (rev 11449)
@@ -72,4 +72,11 @@
   opt = optparse.OptionParser(usage="%s [options] [config_file] [output_file]\n  Default config_file is 'full.cfg', Default output_file is 'OpenLayers.js'")
   opt.add_option("-c", "--compressor", dest="compressor", help="compression method: one of 'jsmin', 'minimize', or 'none'", default="jsmin")
   (options, args) = opt.parse_args()
-  build(*args, options=options)
+  if not len(args):
+    build(options=options)
+  elif len(args) == 1:
+    build(args[0], options=options)
+  elif len(args) == 2:
+    build(args[0], args[1], options=options)
+  else:
+    print "Wrong number of arguments"

Modified: trunk/openlayers/tools/update_dev_dir.sh
===================================================================
--- trunk/openlayers/tools/update_dev_dir.sh	2011-02-24 23:19:53 UTC (rev 11448)
+++ trunk/openlayers/tools/update_dev_dir.sh	2011-02-24 23:48:24 UTC (rev 11449)
@@ -18,7 +18,7 @@
     cd /osgeo/openlayers/docs/dev/tools/ 
     python exampleparser.py
     cd /osgeo/openlayers/docs/dev/build
-    ./build.py tests.cfg
+    ./build.py -c closure tests.cfg
     
     cp OpenLayers.js ..
     cd ..



More information about the Commits mailing list