summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-09-08 14:09:41 +0200
committerMichael Adam <obnox@samba.org>2008-09-08 14:43:39 +0200
commitfcc7239e238ea26204aa7fa4ce8d679b47027be0 (patch)
tree6965621e10216968aae6a0683723c21fc0f5d61c
parent44dd82b9c67e0e47f5c4b526269ce4b637fb195b (diff)
downloadsamba-fcc7239e238ea26204aa7fa4ce8d679b47027be0.tar.gz
samba-fcc7239e238ea26204aa7fa4ce8d679b47027be0.tar.bz2
samba-fcc7239e238ea26204aa7fa4ce8d679b47027be0.zip
packaging(RHEL-CTDB): add fix for versions containing "-" signs.
Michael (cherry picked from commit 423105e29aaef449dbc40d124900a3f654b7266b) (This used to be commit 4bebce268a430a537215b46947e37a8b0225e49d)
-rwxr-xr-xpackaging/RHEL-CTDB/makerpms.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh
index d449466584..219982fda9 100755
--- a/packaging/RHEL-CTDB/makerpms.sh
+++ b/packaging/RHEL-CTDB/makerpms.sh
@@ -62,6 +62,7 @@ vendor_version=`grep SAMBA_VERSION_VENDOR_SUFFIX ${VERSION_H} | awk '{print $3}'
if test "x${vendor_version}" != "x" ; then
VERSION="${VERSION}-${vendor_version}"
fi
+VERSION=`echo ${VERSION} | sed 's/-/_/g'`
VERSION=`echo ${VERSION} | sed 's/\"//g'`
echo "VERSION: ${VERSION}"
sed -e s/PVERSION/${VERSION}/g \