git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for bug #983 (Packed jQuery doesn't have a license at the top of the file.)
[jquery.git]
/
build
/
build
/
pack.js
diff --git
a/build/build/pack.js
b/build/build/pack.js
index
5706a21
..
6a04e72
100644
(file)
--- a/
build/build/pack.js
+++ b/
build/build/pack.js
@@
-12,7
+12,8
@@
var base62 = true;
var shrink = true;
var script = readFile(inFile);
var shrink = true;
var script = readFile(inFile);
+var header = script.match(/\/\*(.|\n)*?\*\//)[0];
var packer = new Packer;
var packedScript = packer.pack(script, base62, shrink);
var packer = new Packer;
var packedScript = packer.pack(script, base62, shrink);
-writeFile(outFile, packedScript);
+writeFile(outFile, header + "\n" + packedScript);