aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-12 01:04:54 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-12 01:04:54 +0000
commit4d2406b22d7ce04473f316db7f3312be215efd51 (patch)
treeb1ecfc9c64513ccb3ab016664afcf986f0f8edd1 /Makefile.PL
parent81f5baa8c64673a78790b118739b1c05d1c85b81 (diff)
downloadperl-URPM-4d2406b22d7ce04473f316db7f3312be215efd51.tar
perl-URPM-4d2406b22d7ce04473f316db7f3312be215efd51.tar.gz
perl-URPM-4d2406b22d7ce04473f316db7f3312be215efd51.tar.bz2
perl-URPM-4d2406b22d7ce04473f316db7f3312be215efd51.tar.xz
perl-URPM-4d2406b22d7ce04473f316db7f3312be215efd51.zip
Add a ChangeLog target in the makefile
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.PL b/Makefile.PL
index d9552d9..6ef07f2 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -9,6 +9,16 @@ my $libs = $version =~ /^4\.0(?:\.[012])?$/ ?
'-lrpm -lrpmio -lpopt -lz -lbz2' : '-lrpm -lrpmio -lrpmdb -lpopt -lz -lbz2';
my $define = $version =~ /^(?:4\.[2-9]|[5-9]|\d{2})/ ? '-DRPM_42' : '';
+sub MY::postamble {
+ <<MAKECHANGELOG;
+.PHONY: ChangeLog
+
+ChangeLog:
+ cvs2cl -W 400 -I ChangeLog --accum -U ../common/username
+ rm -f *.bak
+MAKECHANGELOG
+}
+
WriteMakefile(
'NAME' => 'URPM',
'CCFLAGS' => '-Wall',