diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-11-11 22:40:33 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-11-11 22:40:33 +0300 |
commit | f3b23956054d8b4996fd72cb026fd87ac7abe01f (patch) | |
tree | 1ed00b1671b0e2f26a8be4108dcff530951e3f4f /scripts/release.pl | |
parent | f3e9ed776e023671656fe7527c4ab35c5ae271cb (diff) |
Allow release script to specify custom version1.2.0beta1
Diffstat (limited to 'scripts/release.pl')
-rw-r--r-- | scripts/release.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/release.pl b/scripts/release.pl index 32cd51a54..a92022c13 100644 --- a/scripts/release.pl +++ b/scripts/release.pl @@ -149,7 +149,7 @@ foreach my $dir (@fulldirs) { delete($files{'LICENSE'}); -if (($#ARGV < 0) || ($ARGV[0] ne "release")) { +if ($#ARGV < 0) { open(F, "git rev-parse --short=6 origin|"); while (<F>) { chomp(); @@ -157,6 +157,8 @@ if (($#ARGV < 0) || ($ARGV[0] ne "release")) { } close(F); print "REVISION $ver\n"; +} elsif ($#ARGV == 0) { + $ver = $ARGV[0]; } my $tar = new Archive::Tar(); |