Permalink
Browse files

Adding generate.php to be compatible with Windows

  • Loading branch information...
klederson committed Dec 12, 2013
1 parent 304bd8d commit 837a75786650a89734faa95407495ba2d7431462
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/generator/generate.php
@@ -23,11 +23,11 @@ function recurse_copy($src,$dst) {
@mkdir($dst);
while(false !== ( $file = readdir($dir)) ) {
if (( $file != '.' ) && ( $file != '..' )) {
if ( is_dir($src . '/' . $file) ) {
recurse_copy($src . '/' . $file,$dst . '/' . $file);
if ( is_dir($src . DS . $file) ) {
recurse_copy($src . DS . $file,$dst . DS . $file);
}
else {
copy($src . '/' . $file,$dst . '/' . $file);
copy($src . DS . $file,$dst . DS . $file);
}
}
}

0 comments on commit 837a757

Please sign in to comment.