diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-09-20 20:36:39 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-09-20 20:36:39 -0400 |
commit | a14cf74c167b17db26d4bfdee28afce82e387d98 (patch) | |
tree | cd06e55f971fa7148afd16af3204dced3973b6fa /build | |
parent | 1827b390d8c3dbff6c5ac10c90360ab198a4d34e (diff) | |
download | jquery-ui-a14cf74c167b17db26d4bfdee28afce82e387d98.tar.gz jquery-ui-a14cf74c167b17db26d4bfdee28afce82e387d98.zip |
Build: Remove summary from changelog.
Diffstat (limited to 'build')
-rw-r--r-- | build/release/changelog-shell | 3 | ||||
-rw-r--r-- | build/release/release.js | 36 |
2 files changed, 2 insertions, 37 deletions
diff --git a/build/release/changelog-shell b/build/release/changelog-shell index 7e951d7a6..9c9df9350 100644 --- a/build/release/changelog-shell +++ b/build/release/changelog-shell @@ -22,9 +22,6 @@ DELETE EVERYTHING ABOVE THE FOLLOWING LINE "title": "{title}" }</script> -## Summary -{summary} - ## Build ## Core & Utilities diff --git a/build/release/release.js b/build/release/release.js index 6939c8611..b26f9e9fc 100644 --- a/build/release/release.js +++ b/build/release/release.js @@ -1,7 +1,6 @@ #!/usr/bin/env node -var baseDir, repoDir, majorMinorVersion, patchVersion, prevVersion, newVersion, - nextVersion, tagTime, +var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime, fs = require( "fs" ), path = require( "path" ), // support: node <0.8 @@ -110,8 +109,6 @@ function getVersions() { abort( "This script is not smart enough to handle the 2.0.0 release." ); } - majorMinorVersion = [ major, minor ].join( "." ); - patchVersion = patch; prevVersion = patch === 0 ? [ major, minor - 1, 0 ].join( "." ) : [ major, minor, patch - 1 ].join( "." ); @@ -197,12 +194,7 @@ function generateChangelog() { changelog = cat( "build/release/changelog-shell" ) + "\n", fullFormat = "* %s (TICKETREF, [%h](http://github.com/jquery/jquery-ui/commit/%H))"; - changelog = changelog - .replace( "{title}", "jQuery UI " + newVersion + " Changelog" ) - .replace( "{summary}", patchVersion === 0 ? - "This is the final release of jQuery UI " + majorMinorVersion + "." : - "This is the " + ordinal( patchVersion ) + " maintenance release for " + - "[jQuery UI " + majorMinorVersion + "](/changelog/" + majorMinorVersion + ")." ); + changelog = changelog.replace( "{title}", "jQuery UI " + newVersion + " Changelog" ); echo ( "Adding commits..." ); commits = gitLog( fullFormat ); @@ -330,30 +322,6 @@ function writePackage( pkg ) { JSON.stringify( pkg, null, "\t" ) + "\n" ); } -function ordinal( number ) { - return number === 1 ? "first" : - number === 2 ? "second" : - number === 3 ? "third" : - number === 4 ? "fourth" : - number === 5 ? "fifth" : - number === 6 ? "sixth" : - number === 7 ? "seventh" : - number === 8 ? "eighth" : - number === 9 ? "ninth" : - number === 10 ? "tenth" : - number === 11 ? "eleventh" : - number === 12 ? "twelfth" : - number === 13 ? "thirteenth" : - number === 14 ? "fourteenth" : - number === 15 ? "fifteenth" : - number === 16 ? "sixteenth" : - number === 17 ? "seventeenth" : - number === 18 ? "eighteenth" : - number === 19 ? "nineteenth" : - number === 20 ? "twentieth" : - "twenty " + ordinal( number - 20 ); -} - function bootstrap( fn ) { console.log( "Determining directories..." ); baseDir = process.cwd() + "/__release"; |