]> arthur.barton.de Git - bup.git/commitdiff
Update version extraction for _version.py to work with the new tag syntax.
authorPatrick Rouleau <prouleau72@gmail.com>
Mon, 30 Sep 2013 04:10:50 +0000 (00:10 -0400)
committerRob Browning <rlb@defaultvalue.org>
Fri, 18 Oct 2013 20:00:07 +0000 (15:00 -0500)
The version tag used to be in the form "bup-<version>".

The syntax is now just "<version>" to allow github to produce
reasonable archives (i.e. not bup-bup-VERSION).

Signed-off-by: Patrick Rouleau <prouleau72@gmail.com>
Reviewed-by: Gabriel Filion <gabster@lelutin.ca>
[rlb@defaultvalue.org: adjust commit message.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
format-subst.pl

index 8b834c42ea6127432caf9374a42affdba440612f..e91c3b8ad7f8cf23c5ca660ba1ca13db2e3ce3b2 100755 (executable)
@@ -12,8 +12,8 @@ while (<>) {
     s{
        \$Format:\%d\$
     }{
-       my $tag = fix(`git describe --match="bup-*"`);
-       "(tag: $tag)"
+       my $tag = fix(`git describe --match="[0-9]*"`);
+       "(tag: bup-$tag)"
     }ex;
     
     s{