Permalink
Browse files

build: fix CSS optimization on POSIX

  • Loading branch information...
1 parent 7dbc29f commit 07e712bee6c32337bc27a8f06b358d9c7cbcf1ef @mamacdon committed Nov 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 build/build.js
View
@@ -240,7 +240,7 @@ function build(optimizeElements) {
section('Copying Dojo CSS files');
var copyDojoCss = IS_WINDOWS
? format('robocopy "${0}" "${1}" *.css /s /nfl /ndl /nc /njh ', pathToDojo, pathToTempDir)
- : format('find ${0} -name "*.css" -exec cp {} ${1} ";"', pathToDojo, pathToTempDir);
+ : format('rsync -rv --include="*/" --include="*.css" --exclude="*" ${0} ${1}', path.join(pathToDojo, 'org.dojotoolkit'), pathToTempDir);
return execCommand(copyDojoCss, null, !!IS_WINDOWS /*robocopy returns non-0 exit codes on success, ignore them*/)
.then(function() {
// Optimize each page's corresponding ${page}.css file.

0 comments on commit 07e712b

Please sign in to comment.