From 217c5e2c2f505c8fbbb6e6513276600624f5d42b Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Thu, 20 Nov 2008 13:18:19 +0000 Subject: build.xml - Pack task now using PHP packer. --- release/build/pack.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 release/build/pack.php (limited to 'release/build/pack.php') diff --git a/release/build/pack.php b/release/build/pack.php new file mode 100644 index 000000000..1caa60a5f --- /dev/null +++ b/release/build/pack.php @@ -0,0 +1,20 @@ += 3) { + $src = $argv[1]; + $out = $argv[2]; +} else { + echo 'you must specify a source file and a result filename',"\n"; + echo 'example :', "\n", 'php pack.php myScript-src.js myPackedScript.js',"\n"; + return; +} + +require 'class.JavaScriptPacker.php'; + +$script = file_get_contents($src); + +$packer = new JavaScriptPacker($script, 'Normal', true, false); +$packed = $packer->pack(); + +file_put_contents($out, $packed); +?> -- cgit v1.2.3