diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-14 10:38:45 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-14 10:38:45 +0000 |
commit | 93c7120313cba0140310ffcdabb4686dce9f0614 (patch) | |
tree | b3ec65c5d42a2c2e64698c7f54778cd7fcc0fbba /Makefile.PL | |
parent | c6c92b95c698d398a12c530d2de718c72e787388 (diff) | |
download | rpmtools-93c7120313cba0140310ffcdabb4686dce9f0614.tar rpmtools-93c7120313cba0140310ffcdabb4686dce9f0614.tar.gz rpmtools-93c7120313cba0140310ffcdabb4686dce9f0614.tar.bz2 rpmtools-93c7120313cba0140310ffcdabb4686dce9f0614.tar.xz rpmtools-93c7120313cba0140310ffcdabb4686dce9f0614.zip |
Don't hardcode version in several places
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL index 8c0e5da..42c0140 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,8 +2,10 @@ # use 5.008; use ExtUtils::MakeMaker; +use MDK::Common qw(cat_); -my $rpmtools_version = '5.0.3'; +(my $rpmtools_version) = cat_('rpmtools.spec') =~ /define\s+version\s+(\d+\.\d+\.\d+)/ + or die "no version found\n"; sub MY::postamble { <<MAKEMAKEFILE; |