summaryrefslogtreecommitdiff
path: root/buildscripts/jsbuilder/build.php
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/jsbuilder/build.php')
-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