4 sys.path.append("../tools")
8 sourceDirectory = "../lib"
9 configFilename = "full.cfg"
10 outputFilename = "OpenLayers.js"
13 configFilename = sys.argv[1] + ".cfg"
15 outputFilename = sys.argv[2]
17 print "Merging libraries."
18 merged = mergejs.run(sourceDirectory, None, configFilename)
19 print "Adding license file."
20 merged = file("license.txt").read() + merged
22 print "Writing to %s." % outputFilename
23 file(outputFilename, "w").write(merged)