summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorwei <>2006-02-02 05:04:50 +0000
committerwei <>2006-02-02 05:04:50 +0000
commita2a030c3cfbb0249762fffa4159107bc13f8952d (patch)
treee8b2f97068cf92a314df360ccf8dfb1d37b92bd6 /buildscripts
parent93f6933c39b2e1896ff781a8f839a3c73a7e56b1 (diff)
Fixed #19
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/jsbuilder/build.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/buildscripts/jsbuilder/build.php b/buildscripts/jsbuilder/build.php
index ba721eba..0b61b1bb 100644
--- a/buildscripts/jsbuilder/build.php
+++ b/buildscripts/jsbuilder/build.php
@@ -143,14 +143,15 @@ foreach($libraries as $libFile => $sourceFiles)
$sourceFile=SOURCE_DIR.'/'.$sourceFile;
if(!is_file($sourceFile))
echo "Source file not found: $sourceFile\n";
- $tempFile=$sourceFile.'.tmp';
- $command=sprintf(COMPRESS_COMMAND,$sourceFile,$tempFile);
- echo "...adding $sourceFile\n".
- system($command);
- $contents.=file_get_contents($tempFile);
- @unlink($tempFile);
+
+ echo "...adding $sourceFile\n";
+ $contents.=file_get_contents($sourceFile)."\n\n";
}
- file_put_contents($libFile,$contents);
+ $tempFile=$libFile.'.tmp';
+ file_put_contents($tempFile,$contents);
+ $command=sprintf(COMPRESS_COMMAND,$tempFile,$libFile);
+ system($command);
+ @unlink($tempFile);
}
?> \ No newline at end of file