Ticket #385: license_build.patch
| File license_build.patch, 0.6 kB (added by tschaub, 2 years ago) |
|---|
-
build.py
old new 14 14 if len(sys.argv) > 2: 15 15 outputFilename = sys.argv[2] 16 16 17 print "Adding license file."18 merged = file("license.txt").read()19 17 print "Merging libraries." 20 merged += mergejs.run(sourceDirectory, None, configFilename)18 merged = mergejs.run(sourceDirectory, None, configFilename) 21 19 print "Compressing." 22 20 minimized = jsmin.jsmin(merged) 21 print "Adding license file." 22 minimized = file("license.txt").read() + minimized 23 23 24 24 print "Writing to %s." % outputFilename 25 25 file(outputFilename, "w").write(minimized)
