2011-01-24 16:38:01 +08:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
2011-01-24 12:12:36 +08:00
|
|
|
use ExtUtils::MakeMaker;
|
2011-01-24 16:38:01 +08:00
|
|
|
|
2011-01-24 12:12:36 +08:00
|
|
|
WriteMakefile
|
2011-01-24 16:38:01 +08:00
|
|
|
(
|
|
|
|
NAME => 'feedGnuplot',
|
|
|
|
AUTHOR => q{Dima Kogan <dkogan@cds.caltech.edu>},
|
|
|
|
VERSION_FROM => 'bin/feedGnuplot',
|
|
|
|
ABSTRACT_FROM => 'bin/feedGnuplot',
|
|
|
|
($ExtUtils::MakeMaker::VERSION >= 6.3002
|
|
|
|
? ('LICENSE' => 'perl')
|
|
|
|
: ()),
|
|
|
|
PL_FILES => {},
|
|
|
|
EXE_FILES => [ 'bin/feedGnuplot' ],
|
2011-01-27 13:58:46 +08:00
|
|
|
PREREQ_PM => { 'Test::Script::Run' => 0 ,
|
|
|
|
'List::MoreUtils' => 0},
|
2011-01-24 16:38:01 +08:00
|
|
|
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
|
|
|
|
clean => { FILES => 'feedGnuplot-*' },
|
|
|
|
);
|
|
|
|
|
2011-01-27 14:10:55 +08:00
|
|
|
# reroute the main POD into a separate README.pod if requested. This is here
|
|
|
|
# purely to generate a README.pod for the github front page
|
|
|
|
if(exists $ARGV[0] && $ARGV[0] eq 'README.pod')
|
2011-01-24 16:38:46 +08:00
|
|
|
{
|
2011-01-27 14:10:55 +08:00
|
|
|
open SCRIPT, 'bin/feedGnuplot' or die "Couldn't open main script";
|
|
|
|
open README, '>README.pod' or die "Couldn't open README.pod";
|
|
|
|
while (<SCRIPT>)
|
|
|
|
{
|
|
|
|
if (/^=/../^=cut/)
|
|
|
|
{ print README; }
|
|
|
|
}
|
2011-01-24 16:38:46 +08:00
|
|
|
}
|