aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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',