1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-mkversion: Support external VERSION specification

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Amitay Isaacs 2014-05-25 12:00:59 +10:00 committed by Michael Adam
parent 0a4fc92c77
commit cd7f401744

View File

@ -28,12 +28,17 @@ if [ -z "$OUTPUT" ]; then
OUTPUT="include/ctdb_version.h"
fi
VERSION=$2
RELEASE=1
# We use tags and determine the version, as follows:
# ctdb-0.9.1 (First release of 0.9).
# ctdb-0.9.23 (23rd minor release of the 112 version)
#
# If we're not directly on a tag, this is a devel release; we append
# .0.<patchnum>.<checksum>.devel to the release.
if [ -z "$VERSION" ]; then
TAG=`git describe --match "samba-*"`
case "$TAG" in
samba-*)
@ -56,6 +61,8 @@ case "$TAG" in
;;
esac
fi
cat > "$OUTPUT" <<EOF
/* This file is auto-genrated by packaging/mkversion.sh */