diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-20 13:18:19 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-20 13:18:19 +0000 |
commit | 217c5e2c2f505c8fbbb6e6513276600624f5d42b (patch) | |
tree | 90a369f485a4d716a81e7144e2bc7513f23e7f56 /release/build/pack.php | |
parent | 491e5b2f1817e0640e01c7d319366a8660b38a71 (diff) | |
download | jquery-ui-217c5e2c2f505c8fbbb6e6513276600624f5d42b.tar.gz jquery-ui-217c5e2c2f505c8fbbb6e6513276600624f5d42b.zip |
build.xml - Pack task now using PHP packer.
Diffstat (limited to 'release/build/pack.php')
-rw-r--r-- | release/build/pack.php | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ +<?php + +if ($argc >= 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); +?> |