From 7949f7fe746dbbe3eeefbc123bbb2c551b091733 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 14 Apr 2006 05:14:34 +0000 Subject: Fixed #93 and #121 --- 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