aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-12-16 12:50:43 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-12-16 12:50:43 +0000
commitb1465ed964921049201ea9e103a871d57e5d7194 (patch)
tree5366fb3479c8ba9b227cf6c282c042ec04829ff3 /Makefile.PL
parent2abfaffd2dc73af57053ea85987968060d029dfd (diff)
downloadrpmtools-b1465ed964921049201ea9e103a871d57e5d7194.tar
rpmtools-b1465ed964921049201ea9e103a871d57e5d7194.tar.gz
rpmtools-b1465ed964921049201ea9e103a871d57e5d7194.tar.bz2
rpmtools-b1465ed964921049201ea9e103a871d57e5d7194.tar.xz
rpmtools-b1465ed964921049201ea9e103a871d57e5d7194.zip
- add tag command
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 42c0140..07dfa6f 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -7,6 +7,10 @@ use MDK::Common qw(cat_);
(my $rpmtools_version) = cat_('rpmtools.spec') =~ /define\s+version\s+(\d+\.\d+\.\d+)/
or die "no version found\n";
+
+my $tag_version = "v$rpmtools_version";
+$tag_version =~ s/\./_/g;
+
sub MY::postamble {
<<MAKEMAKEFILE;
.PHONY: ChangeLog
@@ -29,7 +33,13 @@ ChangeLog:
rpm: dist
rpm --define "_sourcedir `pwd`" -ba --clean --rmsource rpmtools.spec
+
+tag:
+ cvs tag $tag_version
+
+
MAKEMAKEFILE
+
}
WriteMakefile(