summaryrefslogtreecommitdiff
path: root/buildscripts/jsbuilder
diff options
context:
space:
mode:
authorwei <>2006-04-14 05:14:34 +0000
committerwei <>2006-04-14 05:14:34 +0000
commit7949f7fe746dbbe3eeefbc123bbb2c551b091733 (patch)
tree3880a5fbad51a2c9aca5ab5c5dc5b01f1a8f2da6 /buildscripts/jsbuilder
parent9e21d160ead61cd0ed86c16a0668c50b14f58baf (diff)
Fixed #93 and #121
Diffstat (limited to 'buildscripts/jsbuilder')
-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