On Mon, May 26, 2003 at 01:59:02PM +0800, Autrijus Tang wrote:
> On a somewhat OT note, PAR distributions (both generated by PAR.pm's
> "pp -p" and Module::Install's "make par") now has a MANIFEST file that
> looks like this:
You'll have to at least put a # in front of the HTML comment to make this
valid. Right now you're exploiting an oversight in maniread() that lines
starting with spaces are ignored.
> <!-- accessible as jar:file:///NAME.par!/MANIFEST in compliant browsers -->
> MANIFEST
> META.yml
> script/main.pl
> script/test.pl
> # <html><body onload="var X=document.body.innerHTML.split(/\n/);var Y='<iframe
> src="META.yml"
> style="float:right;height:40%;width:40%"></iframe><ul>';for(var x in
> X){if(!X[x].match(/^\s*#/)&&X[x].length)Y+='<li><a
> href="'+X[x]+'">'+X[x]+'</a>'}document.body.innerHTML=Y">
>
> So Gecko-based browsers can display content and metadata inside a
> distribution without uncompressing it, e.g.:
>
> jar:http://aut.dyndns.org/par/WWW-Mechanize-0.40-i386-freebsd-5.8.0.par!/MANIFEST
> (autogenerated with M::I from WWW-Mechanize distribution using "make par")
>
> So any non-maniread()-compliant parsers will probably also misparse it.
>
> Although I do wonder what will happen to file names containing spaces...
--
Cheating is often more efficient.
- Seven of Nine