summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-21 11:03:34 +0100
committerMichael Adam <obnox@samba.org>2009-11-13 16:19:32 +0100
commit0037b31b2f312586230c6631f647e5ad5fcbb994 (patch)
treeb6c6646efe2a1b1175d54973642458dfa4bd35fc
parent30edbb86609f45fda3e3ba730d9494c1e02043c4 (diff)
downloadsamba-0037b31b2f312586230c6631f647e5ad5fcbb994.tar.gz
samba-0037b31b2f312586230c6631f647e5ad5fcbb994.tar.bz2
samba-0037b31b2f312586230c6631f647e5ad5fcbb994.zip
packaging(RHEL-CTDB): extend makespec.sh to extract VENDOR_PATCH from version.h
Michael (cherry picked from commit fc122aa276bce379b492e5bdf52ab3e03bc3737f)
-rwxr-xr-xpackaging/RHEL-CTDB/makespec.sh4
1 files changed, 4 insertions, 0 deletions
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}"