diff options
author | John Resig <jeresig@gmail.com> | 2007-05-20 16:42:42 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-05-20 16:42:42 +0000 |
commit | 5e964a4a734177c7359735b893e2d6ce5abaedbd (patch) | |
tree | 2359084b83715760b37e247e304a03063cf61e45 /build | |
parent | 9b5363b9eb197515e31589894c945dfd70b8b93b (diff) | |
download | jquery-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.js | 3 |
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); |