summaryrefslogtreecommitdiff
path: root/buildscripts/jsbuilder/build.php
diff options
context:
space:
mode:
authorxue <>2006-04-14 12:55:01 +0000
committerxue <>2006-04-14 12:55:01 +0000
commita66e3a8afb63d472b3ec92a406538dfc0a492efb (patch)
treea7b78fef549ee487027133f3db7095aabbe97dba /buildscripts/jsbuilder/build.php
parentf6a5e7589396854e10e023c25237b47e512ff047 (diff)
merge from branch 3.0 till 908.
Diffstat (limited to 'buildscripts/jsbuilder/build.php')
-rw-r--r--buildscripts/jsbuilder/build.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildscripts/jsbuilder/build.php b/buildscripts/jsbuilder/build.php
index 86dc40f1..6689d2c6 100644
--- a/buildscripts/jsbuilder/build.php
+++ b/buildscripts/jsbuilder/build.php
@@ -137,6 +137,7 @@ $requestedLibs=array();
for($i=1;$i<$argc;++$i)
$requestedLibs[]=$argv[$i].'.js';
+$builds = 0;
/**
* loop through all target files and build them one by one
*/
@@ -161,6 +162,10 @@ foreach($libraries as $libFile => $sourceFiles)
$command=sprintf(COMPRESS_COMMAND,$tempFile,$libFile);
system($command);
@unlink($tempFile);
+ $builds++;
}
-
+if($builds > 0)
+ echo "\nJavascript build complete, {$builds} file(s) compressed.";
+else
+ echo "No files to build.";
?> \ No newline at end of file