]> source.dussan.org Git - jquery.git/commitdiff
build: correct paths so that archiving works.
authorChris Talkington <chris@talkingtontech.com>
Sun, 12 May 2013 20:50:54 +0000 (15:50 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 17 May 2013 01:56:35 +0000 (21:56 -0400)
(cherry picked from commit 8ab32fe3ff81491e01f2da132ec2ba9bd499b555)

build/release.js

index a109e044a7d423ff560e7a038691308e73618eea..bd9786eb4f30338b022be7ed06a879b4953d0ce8 100644 (file)
@@ -162,10 +162,10 @@ function makeReleaseCopies( next ) {
                                                "\",\"sources\":[\"" + releaseFile.replace( /\.min\.map/, ".js" ) + "\"]" );
                                console.log( "Modifying map " + builtFile + " to " + releaseFile );
                                if ( !debug ) {
-                                       fs.writeFileSync( releaseFile, text );
+                                       fs.writeFileSync( "dist/" + releaseFile, text );
                                }
                        } else {
-                               copy( builtFile, releaseFile );
+                               copy( builtFile, "dist/" + releaseFile );
                        }
 
                        jQueryFilesCDN.push( releaseFile );
@@ -228,16 +228,18 @@ function updatePackageVersion( ver ) {
 }
 
 function makeArchive( cdn, files, fn ) {
-
        if ( isBeta ) {
                console.log( "Skipping archive creation for " + cdn + "; " + releaseVersion + " is beta" );
                process.nextTick( fn );
-               return
+               return;
        }
-       console.log("Creating production archive for " + cdn );
+
+       console.log( "Creating production archive for " + cdn );
+
        files = files.map(function( item ) {
                return "dist/" + item.replace( /VER/g, releaseVersion );
        });
+
        var md5file = "dist/" + cdn + "-md5.txt";
        exec( "md5sum", files, function( err, stdout, stderr ) {
                fs.writeFileSync( md5file, stdout );