s3:packaging: Fix version detection.
authorKarolin Seeger <kseeger@samba.org>
Thu, 10 Dec 2009 13:57:08 +0000 (14:57 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 Dec 2009 14:00:24 +0000 (15:00 +0100)
Adapted from 728b01fc03.
Thanks god I was not root! It would have delted /*!

Karolin

packaging/RHEL/makerpms.git.sh

index 1b3164841569f9b60969a1ecceba8b02c106c090..68f9d96ac96d4e0307cabe372d5a41e61f7519cd 100755 (executable)
@@ -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