Fix build script on python before 2.6, and update_dev_dir now compiles
with closure instead of jsmin. git-svn-id: http://svn.openlayers.org/trunk/openlayers@11449 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -72,4 +72,11 @@ if __name__ == '__main__':
|
|||||||
opt = optparse.OptionParser(usage="%s [options] [config_file] [output_file]\n Default config_file is 'full.cfg', Default output_file is 'OpenLayers.js'")
|
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")
|
opt.add_option("-c", "--compressor", dest="compressor", help="compression method: one of 'jsmin', 'minimize', or 'none'", default="jsmin")
|
||||||
(options, args) = opt.parse_args()
|
(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"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ if [ ! o$REV = $OLD_REV ]; then
|
|||||||
cd /osgeo/openlayers/docs/dev/tools/
|
cd /osgeo/openlayers/docs/dev/tools/
|
||||||
python exampleparser.py
|
python exampleparser.py
|
||||||
cd /osgeo/openlayers/docs/dev/build
|
cd /osgeo/openlayers/docs/dev/build
|
||||||
./build.py tests.cfg
|
./build.py -c closure tests.cfg
|
||||||
|
|
||||||
cp OpenLayers.js ..
|
cp OpenLayers.js ..
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
Reference in New Issue
Block a user