summaryrefslogtreecommitdiff
path: root/packaging/RHEL
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2009-12-10 14:57:08 +0100
committerKarolin Seeger <kseeger@samba.org>2009-12-10 15:00:24 +0100
commit0604c696a05773a439538d88f1b45aa6637766a7 (patch)
tree8faa126e3dcc2e0f8b1a1c9e37b7db0788490cc9 /packaging/RHEL
parent56b754e09ad5cd926e1dd0747252b7c359294938 (diff)
downloadsamba-0604c696a05773a439538d88f1b45aa6637766a7.tar.gz
s3:packaging: Fix version detection.
Adapted from 728b01fc03. Thanks god I was not root! It would have delted /*! Karolin
Diffstat (limited to 'packaging/RHEL')
-rwxr-xr-xpackaging/RHEL/makerpms.git.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/RHEL/makerpms.git.sh b/packaging/RHEL/makerpms.git.sh
index 1b316484156..68f9d96ac96 100755
--- a/packaging/RHEL/makerpms.git.sh
+++ b/packaging/RHEL/makerpms.git.sh
@@ -61,8 +61,8 @@ if [ ! -f ${VERSION_H} ] ; then
exit 1
fi
-VERSION=`grep SAMBA_VERSION_OFFICIAL_STRING ${VERSION_H} | awk '{print $3}'`
-vendor_version=`grep SAMBA_VERSION_VENDOR_SUFFIX ${VERSION_H} | awk '{print $3}'`
+VERSION=`grep "^#define SAMBA_VERSION_OFFICIAL_STRING " ${VERSION_H} | awk '{print $3}'`
+vendor_version=`grep "^#define SAMBA_VERSION_VENDOR_SUFFIX " ${VERSION_H} | awk '{print $3}'`
if test "x${vendor_version}" != "x" ; then
VERSION="${VERSION}-${vendor_version}"
fi