diff options
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/Makefile.PL b/Makefile.PL index f307990..8fd2249 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,32 +5,15 @@ use strict; use ExtUtils::MakeMaker; # where to find the rpm utility -my $rpm_path = $ENV{RPM_PATH}; # this overrides -unless (defined $rpm_path) { - for (qw(/bin/rpm /usr/bin/rpm)) { - if (-x) { - $rpm_path = $_; - last; - } - } -} sub MY::postamble { <<MAKE; -.PHONY: ChangeLog rpmdist srpm rpm - -ChangeLog: ../common/username - cvs2cl -W 400 -I ChangeLog --accum -U ../common/username - rm -f *.bak - -rpmdist: dist - bzme MDV-Distribconf-*.tar.gz +.PHONY: ChangeLog -srpm: rpmdist - rpmbuild -bs --clean --rmsource perl-MDV-Distribconf.spec --define "_sourcedir `pwd`" +ChangeLog: + svn2cl -o ChangeLog || : + rm -f *.bak || : -rpm: rpmdist - rpmbuild -ba --clean --rmsource perl-MDV-Distribconf.spec --define "_sourcedir `pwd`" MAKE } |