aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 8ec2248..c1e4689 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -26,12 +26,22 @@ print "Found RPM version $version\n";
my $rpmtopdir = `$rpm_path --eval '%{_topdir}'`;
chomp $rpmtopdir;
+# to generate the ChangeLog depending on the checkout layout
+my $commonusername = "../common/";
+-d $commonusername or do {
+ $commonusername = "../../common/";
+ -d $commonusername or do {
+ $commonusername = "../../../common/";
+ -d $commonusername or $commonusername = "";
+ };
+};
+
sub MY::postamble {
<<"**MM**";
.PHONY: ChangeLog rpmdist srpm rpm
ChangeLog:
- cvs2cl -W 400 -I ChangeLog --accum -U ../common/username
+ svn2cl --accum --strip-prefix=soft/rpm/perl-URPM/trunk --authors ${commonusername}username.xml
rm -f *.bak
rpmdist: dist