From 1f560ccd8a9e21871dbedd548fc97f231131c771 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 30 Aug 2006 12:33:43 +0000 Subject: merge from 3.0 branch till 1363. --- buildscripts/jsbuilder/build.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'buildscripts') 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); -- cgit v1.2.3