[gnome-media] git-version-get: use GNOME_MEDIA* tag name
- From: Marc-Andre Lureau <malureau src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-media] git-version-get: use GNOME_MEDIA* tag name
- Date: Thu, 23 Apr 2009 12:09:42 -0400 (EDT)
commit 12a9b2952b2bf9da410a7c3b0fe017f5f20be2bb
Author: Marc-André Lureau <marc-andre lureau nokia com>
Date: Thu Apr 23 18:40:58 2009 +0300
git-version-get: use GNOME_MEDIA* tag name
---
build-aux/git-version-gen | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index 710870c..cf6dafe 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -1,6 +1,6 @@
#!/bin/sh
# Print a version string.
-scriptversion=2008-04-08.07
+scriptversion=2009-04-23.18
# Copyright (C) 2007-2008 Free Software Foundation
#
@@ -91,14 +91,16 @@ then
&& echo "$0: WARNING: $tarball_version_file seems to be damaged" 1>&2
fi
+GNOME_TAG_PATTERN=GNOME_MEDIA
+
if test -n "$v"
then
: # use $v
elif test -d .git \
- && v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
+ && v=`git describe --abbrev=4 --match='${GNOME_TAG_PATTERN}_*' HEAD 2>/dev/null \
|| git describe --abbrev=4 HEAD 2>/dev/null` \
&& case $v in
- v[0-9]*) ;;
+ ${GNOME_TAG_PATTERN}_[0-9]*) ;;
*) (exit 1) ;;
esac
then
@@ -126,7 +128,9 @@ else
v=UNKNOWN
fi
-v=`echo "$v" |sed 's/^v//'`
+#v=`echo "$v" |sed 's/^v//'`
+
+v=`echo "$v" | sed "s/${GNOME_TAG_PATTERN}_//" | tr _ \-`
# Don't declare a version "dirty" merely because a time stamp has changed.
git status > /dev/null 2>&1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]