From: Giuseppe Scrivano Date: Thu, 11 Aug 2011 08:14:44 +0000 (+0200) Subject: bzr-version-gen: consider only the last tag. X-Git-Tag: v1.13.1~10 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=5eb9c28b3192bfe3d83c07beb062c4a2f782eaf2 bzr-version-gen: consider only the last tag. --- diff --git a/ChangeLog b/ChangeLog index 48e9bf5b..bdbc5dd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-08-11 Giuseppe Scrivano + + * build-aux/bzr-version-gen (TAG): Consider only the last tag. + 2011-08-10 Giuseppe Scrivano * configure.ac: Print usage string for --with-ssl. diff --git a/build-aux/bzr-version-gen b/build-aux/bzr-version-gen index a11eed49..f22d14fd 100755 --- a/build-aux/bzr-version-gen +++ b/build-aux/bzr-version-gen @@ -1,6 +1,6 @@ #!/bin/sh -scriptversion=2011-08-09.13; # UTC +scriptversion=2011-08-11.08; # UTC # Copyright (C) 2010, 2011 Free Software Foundation, Inc. @@ -37,7 +37,7 @@ REVNO=`bzr revno` TAG=`bzr tags -r $REVNO | cut -d' ' -f1` if test -z "$TAG" then - TAG=`bzr tags -r ..$REVNO | cut -d' ' -f1` + TAG=`bzr tags --sort=time -r ..$REVNO | tail -n1 | cut -d' ' -f1` # No tags yet test -z "$TAG" && TAG="unknown"