diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2011-04-03 02:17:21 +0400 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2011-04-03 02:17:21 +0400 |
commit | f7d871105810e7b65d02b4fc0831c30d9da40e78 (patch) | |
tree | fe1369756fbc3dcfc598bbc80343afd18d2acac8 /scripts/release.pl | |
parent | f738bb2db5eb24386748d064aad7f04d0a05af1d (diff) |
Deal with non-rc versions for tarballs
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 025f901fb..3efde46c9 100644 --- a/scripts/release.pl +++ b/scripts/release.pl @@ -150,10 +150,12 @@ foreach my $dir (@fulldirs) { delete($files{'LICENSE'}); if ($#ARGV < 0) { - open(F, "git describe origin|"); + open(F, "git describe origin/master|"); while (<F>) { chomp(); + s/^(.+)-([0-9]+)-(g.+)$/$1|$2|$3/; s/-/~/; + s/\|/-/g; $ver = $_; } close(F); |