]> dev.renevier.net Git - syp.git/blob - openlayers/build/buildUncompressed.py
explain cookies in devdoc/api.txt
[syp.git] / openlayers / build / buildUncompressed.py
1 #!/usr/bin/env python
2
3 import sys
4 sys.path.append("../tools")
5
6 import jsmin, mergejs
7
8 sourceDirectory = "../lib"
9 configFilename = "full.cfg"
10 outputFilename = "OpenLayers.js"
11
12 if len(sys.argv) > 1:
13     configFilename = sys.argv[1] + ".cfg"
14 if len(sys.argv) > 2:
15     outputFilename = sys.argv[2]
16
17 print "Merging libraries."
18 merged = mergejs.run(sourceDirectory, None, configFilename)
19 print "Adding license file."
20 merged = file("license.txt").read() + merged
21
22 print "Writing to %s." % outputFilename
23 file(outputFilename, "w").write(merged)
24
25 print "Done."