From 610e7949764462e50be308e2c15745004b4a267c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 22 Mar 2012 21:28:55 +0100 Subject: [PATCH] Build/grunt: Fix copying of binary files --- grunt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grunt.js b/grunt.js index bbc358e4b..dfc9c63b5 100644 --- a/grunt.js +++ b/grunt.js @@ -438,6 +438,7 @@ task.registerTask( "download_themes", function() { }); task.registerTask( "copy_themes", function() { + var fs = require( "fs" ); // each package includes the base theme, ignore that var filter = /themes\/base/; var files = file.expand( "dist/tmp/*/development-bundle/themes/**/*" ).filter(function( file ) { @@ -447,7 +448,7 @@ task.registerTask( "copy_themes", function() { var target = "dist/" + template.process( config( "files.themes" ), config() ) + "/"; files.forEach(function( fileName ) { var targetFile = fileName.replace( /dist\/tmp\/\d+\/development-bundle\//, "" ).replace( "jquery-ui-.custom", "jquery-ui" ); - file.copy( fileName, target + targetFile ); + file.write( target + targetFile, fs.readFileSync( fileName ) ); }); // copy minified base theme from regular release -- 2.39.5