updates for build-vendor.php script

This commit is contained in:
Erik Amaru Ortiz
2014-01-24 11:33:25 -04:00
parent 1e8ef51e02
commit 22d8b897a3

View File

@@ -19,9 +19,9 @@ if (in_array('--no-ansi', $argv)) {
// On Windows, default to no ANSI, except in ANSICON and ConEmu. // On Windows, default to no ANSI, except in ANSICON and ConEmu.
// Everywhere else, default to ANSI if stdout is a terminal. // Everywhere else, default to ANSI if stdout is a terminal.
define('USE_ANSI', define('USE_ANSI',
(DIRECTORY_SEPARATOR == '\\') (DIRECTORY_SEPARATOR == '\\')
? (false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI')) ? (false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI'))
: (function_exists('posix_isatty') && posix_isatty(1)) : (function_exists('posix_isatty') && posix_isatty(1))
); );
} }
@@ -101,10 +101,10 @@ $filesCollection = array(
"colosa/pmUI/libraries/dataTables/js/jquery.dataTables.min.js" => "js/jquery.dataTables.min.js", "colosa/pmUI/libraries/dataTables/js/jquery.dataTables.min.js" => "js/jquery.dataTables.min.js",
array( array(
"try_files" => array("colosa/pmUI/build/js/min/pmUI-1.0.0.min.js", "colosa/pmUI/build/js/pmUI-1.0.0.js"), "try_files" => array("colosa/pmUI/build/js/min/pmui-1.0.0.min.js", "colosa/pmUI/build/js/pmui-1.0.0.js"),
"to_file" => "pmUI/pmUI-1.0.0.js" "to_file" => "pmUI/pmui-1.0.0.js"
), ),
"colosa/pmUI/build/css/pmUI-1.0.0.css" => "pmUI/pmUI-1.0.0.css", "colosa/pmUI/build/css/pmui-1.0.0.css" => "pmUI/pmui-1.0.0.css",
"colosa/pmUI/build/img/*" => "img/", "colosa/pmUI/build/img/*" => "img/",
); );
@@ -159,7 +159,7 @@ foreach ($filesCollection as $source => $target) {
} }
if ($sw) { if ($sw) {
echo '('.implode(', ', $target['try_files']).')'; echo '('.implode(', ', $files).')';
out(" [FAILED]", "error", true) . PHP_EOL; out(" [FAILED]", "error", true) . PHP_EOL;
} }
} }