From a66e3a8afb63d472b3ec92a406538dfc0a492efb Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 14 Apr 2006 12:55:01 +0000 Subject: merge from branch 3.0 till 908. --- buildscripts/jsbuilder/build.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'buildscripts/jsbuilder/build.php') 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 -- cgit v1.2.3