diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-07-25 13:23:14 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2011-07-25 13:23:14 -0400 |
commit | 68f1f4d54516a400ec9aa70eab50e7891032ffba (patch) | |
tree | f289d8e0f7799a604217c9bdeeeb385eac3706c2 /build | |
parent | 7a1e8809632be7fb04b8e2fe4061bd47bb2ec485 (diff) | |
download | jquery-68f1f4d54516a400ec9aa70eab50e7891032ffba.tar.gz jquery-68f1f4d54516a400ec9aa70eab50e7891032ffba.zip |
Removes date from minimal license
Diffstat (limited to 'build')
-rw-r--r-- | build/post-compile.js | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/build/post-compile.js b/build/post-compile.js index 965bad28e..98b8b849f 100644 --- a/build/post-compile.js +++ b/build/post-compile.js @@ -5,25 +5,14 @@ var print = require( "sys" ).print, src = fs.readFileSync( process.argv[2], "utf8" ), version = fs.readFileSync( "version.txt", "utf8" ), // License Template - license = "/*! jQuery v@VERSION @DATE http://jquery.com/ | http://jquery.org/license */", - date; + license = "/*! jQuery v@VERSION http://jquery.com/ | http://jquery.org/license */"; // Previously done in sed but reimplemented here due to portability issues src = src.replace( /^(\s*\*\/)(.+)/m, "$1\n$2" ) + ";"; -// Mine & Munge Date information -src.split( "\n" ).forEach(function( line, idx ) { - var data = line.split( " * Date: " ); - - if ( data.length && data[ 1 ] ) { - date = data[ 1 ]; - } -}); - -// Set minimal license block vars -license = license.replace( "@VERSION", version ) - .replace( "@DATE", date ); +// Set minimal license block var +license = license.replace( "@VERSION", version ); // Replace license block with minimal license src = src.replace( /\/\/.*?\/?\*.+?(?=\n|\r|$)|\/\*[\s\S]*?\/\/[\s\S]*?\*\//, license ); |