From 0037b31b2f312586230c6631f647e5ad5fcbb994 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 21 Jan 2009 11:03:34 +0100 Subject: packaging(RHEL-CTDB): extend makespec.sh to extract VENDOR_PATCH from version.h Michael (cherry picked from commit fc122aa276bce379b492e5bdf52ab3e03bc3737f) --- packaging/RHEL-CTDB/makespec.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packaging/RHEL-CTDB') diff --git a/packaging/RHEL-CTDB/makespec.sh b/packaging/RHEL-CTDB/makespec.sh index ae58db0d85..62f0969868 100755 --- a/packaging/RHEL-CTDB/makespec.sh +++ b/packaging/RHEL-CTDB/makespec.sh @@ -26,6 +26,10 @@ vendor_version=`grep SAMBA_VERSION_VENDOR_SUFFIX ${VERSION_H} | awk '{print $3}' if test "x${vendor_version}" != "x" ; then VERSION="${VERSION}-${vendor_version}" fi +vendor_patch=`grep SAMBA_VERSION_VENDOR_PATCH ${VERSION_H} | awk '{print $3}'` +if test "x${vendor_patch}" != "x" ; then + VERSION="${VERSION}-${vendor_patch}" +fi VERSION=`echo ${VERSION} | sed 's/-/_/g'` VERSION=`echo ${VERSION} | sed 's/\"//g'` echo "VERSION: ${VERSION}" -- cgit