]> 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)
committerChris Talkington <chris@talkingtontech.com>
Sun, 12 May 2013 21:02:00 +0000 (16:02 -0500)
build/release.js

index f2e4cf560809d753a53f5ee5e955b093f3877028..774bd04474a1224c6fe701aa5eb441481b9e6b45 100644 (file)
@@ -163,10 +163,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 );
@@ -229,16 +229,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 );