You've used h2xs to start buliding your module? You've got a nice MANIFEST file? You want to build a nice tarball? Then use MANIFESTIT.(warning, DISTNAME and VERSION regex could probably use improving).
usage: perl MANIFESTIT.PL path/2/manifest/holding/dir
#!/usr/bin/perl -wl use strict; use Archive::Tar; use vars qw/ $DISTNAME $VERSION/; my @MANIFEST; my $MANIFEST = shift @ARGV || ''; die "ERROR: `$MANIFEST/MANIFEST' $!" unless(-e "$MANIFEST/MANIFEST" and -r "$MANIFEST/MANIFEST"); open(MANIFEST, '<', "$MANIFEST/MANIFEST") or die "ERROR: `$MANIFEST/MANIFEST' $!"; while(<MANIFEST>) { chomp; next unless length $_; die "ERROR: `$MANIFEST/$_' $!" unless(-e "$MANIFEST/$_" and -r "$MANIFEST/$_"); push @MANIFEST,"$MANIFEST/$_"; &_MAKEFILE( $MANIFEST[-1] ) if $_ =~ /Makefile.PL/i; } print for @MANIFEST; my $tar = Archive::Tar->new(); $tar->add_files(@MANIFEST); $tar->write("$DISTNAME-$VERSION.tar"); print "created `$DISTNAME-$VERSION.tar'"; exit; sub _MAKEFILE { open(MAKEFILE,'<',$_[0]) or die "ERROR: `$_[0]' $!"; while(<MAKEFILE>) { chomp; if(/^\s*?'?NAME'?\s*?\=\>\s*?(?:\'|\")?([a-zA-Z:_]+)(?:\'|\")? +,/) { print; $DISTNAME = $1; } if(/^\s*?'?DISTNAME'?\s*?\=\>\s*?(?:\'|\")?([a-zA-Z_-]+)(?:\'| +\")?,/) { print; $DISTNAME = $1; } if(/^\s*?'?VERSION'?\s*?\=\>\s*?(?:\'|\")?([a-zA-Z_-]+)(?:\'|\ +")?,/) { print; $VERSION = $1; } if(/^\s*?'?VERSION_FROM'?\s*?\=\>\s*?(?:\'|\")?([^'"]+)(?:\'|\ +")?,/) { print; open(VERSION,'<',"$MANIFEST/$1") or die "ERROR: `$1' $!"; while(<VERSION>) { chomp; if(/([\$*])(([\w\:\']*)\bVERSION)\b.*\=/) { eval $_; } } } } } __END__ F:\dev\Pod_Parser>perl MANIFESTIT.PL Pod/Stripper 'NAME' => 'Pod::Stripper', 'VERSION_FROM' => 'Stripper.pm', # finds $VERSION 'DISTNAME' => 'Pod-Stripper', Pod/Stripper/Changes Pod/Stripper/Stripper.pm Pod/Stripper/Makefile.PL Pod/Stripper/MANIFEST Pod/Stripper/README Pod/Stripper/test.pl Pod/Stripper/test.stripped created `Pod-Stripper-0.2.tar' F:\dev\Pod_Parser>

In reply to MANIFEST IT! by crazyinsomniac

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.