diff options
author | Michael Adam <obnox@samba.org> | 2009-06-23 23:06:40 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-11-26 11:40:48 +0100 |
commit | 3381cc1c9492f646f3f1e9193a65587b65ba3bae (patch) | |
tree | c8437db2bf0827e4098f786cd020db306a606379 /packaging | |
parent | 4e1325e2568378770235b57c9daa9c8c65d7a53b (diff) | |
download | samba-3381cc1c9492f646f3f1e9193a65587b65ba3bae.tar.gz |
packaging(RHEL-CTDB):makespec.sh: fix detection of version
Michael
(cherry picked from commit 1421aad532daf93d213e6c1b74ad00535832ece3)
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/RHEL-CTDB/makespec.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/RHEL-CTDB/makespec.sh b/packaging/RHEL-CTDB/makespec.sh index 29a2c42517c..e47f44936a5 100755 --- a/packaging/RHEL-CTDB/makespec.sh +++ b/packaging/RHEL-CTDB/makespec.sh @@ -21,12 +21,12 @@ 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 -vendor_patch=`grep SAMBA_VERSION_VENDOR_PATCH ${VERSION_H} | awk '{print $3}'` +vendor_patch=`grep "^#define SAMBA_VERSION_VENDOR_PATCH " ${VERSION_H} | awk '{print $3}'` if test "x${vendor_patch}" != "x" ; then VERSION="${VERSION}-${vendor_patch}" fi |