summaryrefslogtreecommitdiff
path: root/buildscripts/jsbuilder
diff options
context:
space:
mode:
authorxue <>2006-08-30 12:33:43 +0000
committerxue <>2006-08-30 12:33:43 +0000
commit1f560ccd8a9e21871dbedd548fc97f231131c771 (patch)
tree90d054108a0bce4668ca16d425655b22c99ed6d3 /buildscripts/jsbuilder
parentf4482f9c17825b63242fee42252e097dd85f53c5 (diff)
merge from 3.0 branch till 1363.
Diffstat (limited to 'buildscripts/jsbuilder')
-rw-r--r--buildscripts/jsbuilder/build.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/buildscripts/jsbuilder/build.php b/buildscripts/jsbuilder/build.php
index c4800851..ebd7b4d2 100644
--- a/buildscripts/jsbuilder/build.php
+++ b/buildscripts/jsbuilder/build.php
@@ -157,7 +157,7 @@ foreach($libraries as $jsFile => $sourceFiles)
{
if(!empty($requestedLibs) && !in_array($jsFile,$requestedLibs))
continue;
- $libFile=TARGET_DIR.'/'.$jsFile;
+ //$libFile=TARGET_DIR.'/'.$jsFile;
echo "\nBuilding $jsFile...\n";
$contents='';
foreach($sourceFiles as $sourceJsFile)
@@ -169,9 +169,10 @@ foreach($libraries as $jsFile => $sourceFiles)
echo "...adding $sourceJsFile\n";
$contents.=file_get_contents($sourceFile)."\n\n";
}
- $tempFile=$libFile.'.tmp';
- file_put_contents($tempFile,$contents);
- $jsMin = new JSMin($tempFile, $libFile);
+ $debugFile=TARGET_DIR.'/debug/'.$jsFile;
+ $compressFile=TARGET_DIR.'/compressed/'.$jsFile;
+ file_put_contents($debugFile,$contents);
+ $jsMin = new JSMin($debugFile, $compressFile);
$jsMin -> minify();
unset($jsMin);
@unlink($tempFile);