aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-05-20 16:42:42 +0000
committerJohn Resig <jeresig@gmail.com>2007-05-20 16:42:42 +0000
commit5e964a4a734177c7359735b893e2d6ce5abaedbd (patch)
tree2359084b83715760b37e247e304a03063cf61e45 /build
parent9b5363b9eb197515e31589894c945dfd70b8b93b (diff)
downloadjquery-5e964a4a734177c7359735b893e2d6ce5abaedbd.tar.gz
jquery-5e964a4a734177c7359735b893e2d6ce5abaedbd.zip
Fix for bug #983 (Packed jQuery doesn't have a license at the top of the file.)
Diffstat (limited to 'build')
-rw-r--r--build/build/pack.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/build/pack.js b/build/build/pack.js
index 5706a2187..6a04e7224 100644
--- 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 header = script.match(/\/\*(.|\n)*?\*\//)[0];
var packer = new Packer;
var packedScript = packer.pack(script, base62, shrink);
-writeFile(outFile, packedScript);
+writeFile(outFile, header + "\n" + packedScript);