NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
I like this script (Score:1)
I have always created my CPAN tarballs by hand, so I was delighted to try your script and I like it (apart from the 'preexsting' typo ;).
I suppose you might replace:
system(" chmod a+r $new && mv $new ~/public_html/ ");
with something like:
chmod(0644, $new) or die "chmod '$new' failed: $!";
rename($new, "$ENV{HOME}/public_html/$new") or die "rename '$new' failed: $!";
One annoyance I noticed is that it seems to put MANIFEST.bak and Makefile.old into the tarball. Also, is it correct practice to
/-\
Re:I like this script (Score:2)
Maybe I should add "^dist" and/or "^disttest" to that?
I like your (and everyone's) suggestions. I'll work them in.
Re:I like this script (Score:1)
TorgoX, I think you meant MANIFEST.SKIP and not MAKEFILE.SKIP. I have got it working nicely now, though I found the MANIFEST.SKIP file to be tempermental in the extreme. This is my MANIFEST.SKIP:
^MANIFEST\.
^Makefile$
\.old$
^blib/
For a while, I was plagued by the "double distribution" problem mentioned by Matts, but I deleted my MANIFEST file and have not seen this problem since (I am running Perl 5.6.1).
/-\
Reply to This
Parent