1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb:build: Update mkversion.sh to use samba-* tags

To test CTDB on a cluster we need to be able to build test RPMs with
relatively sane version numbers.  This is a minimal change to allow
that to happen, until CTDB is integrated into the Samba build system.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2013-11-28 12:23:57 +11:00 committed by Martin Schwenke
parent 92489bfed4
commit 609fee6135

View File

@ -34,10 +34,10 @@ fi
#
# If we're not directly on a tag, this is a devel release; we append
# .0.<patchnum>.<checksum>.devel to the release.
TAG=`git describe`
TAG=`git describe --match "samba-*"`
case "$TAG" in
ctdb-*)
TAG=${TAG##ctdb-}
samba-*)
TAG=${TAG##samba-}
case "$TAG" in
*-*-g*) # 0.9-168-ge6cf0e8
# Not exactly on tag: devel version.