* build-aux/git-version-gen: Limit result to tags that match 'v*'
if possible.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2008-04-08 Eric Blake <ebb9@byu.net>
+
+ Use 'git describe --match' if present (added in git 1.5.5).
+ * build-aux/git-version-gen: Limit result to tags that match 'v*'
+ if possible.
+
2008-04-08 Bruno Haible <bruno@clisp.org>
Add tentative support for OpenServer.
#!/bin/sh
# Print a version string.
-scriptversion=2008-04-03.22
+scriptversion=2008-04-08.07
# Copyright (C) 2007-2008 Free Software Foundation
#
then
: # use $v
elif test -d .git \
- && v=`git describe --abbrev=4 HEAD 2>/dev/null` \
+ && v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
+ || git describe --abbrev=4 HEAD 2>/dev/null` \
&& case $v in
v[0-9]*) ;;
*) (exit 1) ;;