-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
58 lines (51 loc) · 1.49 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/perl
use 5.014;
use strict;
use warnings;
use ExtUtils::MakeMaker;
my $module_name = 'App::joc';
my $module_version = '0.10';
# List of scripts in "bin" directory.
my @scripts = qw(
getx509certificate
joc
pulse_connect
);
sub MY::postamble {
my @docfiles = map { "doc/$_.pod" } @scripts;
my $doctarget = "doc:";
my $postamble = '';
for my $s (@scripts) {
my $podfile = "doc/$s.pod";
$postamble .= "\n"
. "$podfile: bin/$s\n"
. "\t".q{podselect $? > $@}."\n";
$doctarget .= " $podfile";
}
return "$doctarget\n$postamble";
}
WriteMakefile(
NAME => $module_name,
VERSION => $module_version,
LICENSE => 'perl_5',
PREREQ_FATAL => 0,
PREREQ_PM => {
'File::Path' => '2.09',
'FindBin' => '1.51',
'Getopt::Long' => '2.49',
'IPC::Run' => '0.94',
'List::Util' => '1.45',
'POSIX' => '1.53_01',
'Pod::Usage' => '1.69',
'Socket' => '2.013',
'Term::ReadKey' => '2.33',
'URI' => '1.71',
'YAML::AppConfig' => '0.19',
'YAML::XS' => '0.62',
'strict' => '1.09',
'warnings' => '1.34',
},
EXE_FILES => [map { "bin/$_" } @scripts],
MAN1PODS => { map { ("bin/$_" => "blib/man1/$_.1p") } @scripts },
AUTHOR => 'Steven Bakker <steven.bakker@ams-ix.net>',
);