App-scriptdist
view release on metacpan or search on metacpan
lib/App/scriptdist.pm view on Meta::CPAN
use vars qw(
@EXPORT @EXPORT_OK %EXPORT_TAGS
%Content $VERSION
$Quiet
);
$VERSION = '1.006';
@EXPORT_OK = qw(
prompt find_files copy gitify content
script_template
%Content
);
%EXPORT_TAGS = (
'all' => [ @EXPORT_OK ],
);
$Quiet = 0;
use Exporter qw(import);
lib/App/scriptdist.pm view on Meta::CPAN
file that already exists.
I do not intend this for new development and don't want to create an
authoring tool. You can do that with some other tool (or fork this
one and build your own).
=head1 FUNCTIONS
=over 4
=item prompt( QUERY )
Provide a prompt, get the response, chomp the neewline, and return
the answer.
=cut
sub prompt {
my( $query ) = shift;
print $query;
chomp( my $reply = <STDIN> );
return $reply;
}
=item find_files( DIRECTORY )
You can turn on optional progress and debugging messages by setting
the environment variable SCRIPTDIST_DEBUG to a true value.
=head2 The process
=over 4
=item * Check for release information
The first time the scriptdist is run, or any time the scriptdist cannot
find the file C<.scriptdistrc>, it prompts for CPAN and SourceForge
developer information that it can add to the F<.releaserc> file. (NOT
YET IMPLEMENTED)
=item * Create a directory named after the script
The distribution directory is named after the script name,
with a F<.d> attached. The suffix is there only to avoid a
name conflict. You can rename it after the script is moved
into the directory. If the directory already exists, the
script stops. You can either move or delete the directory
( run in 0.693 second using v1.01-cache-2.11-cpan-6aa56a78535 )