[jQuery] announce: JS code packer as PHP5 command-line app

[jQuery] announce: JS code packer as PHP5 command-line app


Hi, all!
Nicolas Martin once released a PHP5-based JS packer (http://
joliclic.free.fr/php/javascript-packer/en/), a port of Dean Edwards'
packer code (http://dean.edwards.name/packer/).
Here is a derivative of Nicolas' code:
http://wanderinghorse.net/computing/javascript/#packers
that version extends the original by allowing input from stdin and
output to stdout (the original one required passing two file names,
which is not "The Unix Way").
Assuming you're in a Unix-like environment, it can be used like this:
php packer.php infile outfile
php packer.php infile > outfile
php packer.php < infile > outfile
This packer appears to pack about well as the one in the jQ build tree
does (but that one always fails for me when run outside the context of
build.xml, with an error about "0.0" having some null property).
Happy hacking!