-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile.PL
More file actions
69 lines (60 loc) · 1.75 KB
/
Makefile.PL
File metadata and controls
69 lines (60 loc) · 1.75 KB
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
59
60
61
62
63
64
65
66
67
68
69
# SPDX-License-Identifier: 0BSD OR MIT-0
use 5.10.0;
use ExtUtils::MakeMaker;
# suppress warning about the ExtUtils::MakeMaker bug
# that we fixed with the MAN3PODS setting below
$SIG{__WARN__} = sub {
print STDERR @_ unless "@_" eq "WARNING: Older versions of ExtUtils::MakeMaker may errantly install README.pod as part of this distribution. It is recommended to avoid using this path in CPAN modules.\n"
};
WriteMakefile(
NAME => 'DNS::nsdiff',
VERSION => "1.85",
ABSTRACT =>
"create an 'nsupdate' script from DNS zone file differences",
EXE_FILES => [qw[ nsdiff nspatch nsvi ]],
# to stop MakeMaker from installing the README as a man page
# we have to list the section 3 pages explicitly
MAN3PODS => {
'lib/DNS/nsdiff.pm' => 'blib/man3/DNS::nsdiff.3pm',
},
AUTHOR => 'Tony Finch <dot@dotat.at>',
LICENSE => 'unrestricted', # cc0 not allowed by CPAN::Meta::Spec
MIN_PERL_VERSION=> '5.10.0',
META_MERGE => {
'meta-spec' => { version => 2 },
'resources' => {
repository => {
type => 'git',
url => 'git://dotat.at/nsdiff.git',
web => 'https://dotat.at/cgi/git/nsdiff.git',
}
}
}
);
sub MY::postamble {
return <<'MAKE_FRAG';
html::
mkdir -p web
for f in nsdiff nspatch nsvi; \
do pod2html --noindex $$f >web/$$f.html; \
done
pod2html --noindex README.pod >web/README.html
ln -sf README.html web/index.html
rm -f pod2htm?.tmp
deb::
grep "1.85" debian/changelog
mkdir -p web
dpkg-buildpackage -uc -A
mv ../nsdiff_* web/.
debian/rules clean
upload:: html
git push --tags github trunk
git push --tags chiark trunk
if [ -f DNS-nsdiff-*.tar.gz ]; \
then mv DNS-nsdiff-*.tar.gz web/.; \
fi
cp nsdiff web/.
rsync -ilt web/nsdiff web/*.html web/*.tar.gz web/nsdiff_* \
chiark:public-html/prog/nsdiff/
MAKE_FRAG
}