summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-09-04 14:10:45 +0200
committerMichael Adam <obnox@samba.org>2008-09-08 14:43:38 +0200
commitd4f87ed3b7827b13276e834e7b966b54aadcd470 (patch)
treebf5db8d96ce3818a1bedbb4290246a684cc49419 /packaging
parenta38b80fb06f045191f7d102eec7a51f3fa61bbe6 (diff)
downloadsamba-d4f87ed3b7827b13276e834e7b966b54aadcd470.tar.gz
samba-d4f87ed3b7827b13276e834e7b966b54aadcd470.tar.bz2
samba-d4f87ed3b7827b13276e834e7b966b54aadcd470.zip
packaging(RHEL-CTDB): introduce variable TOPDIR
Michael (cherry picked from commit 74e335ebf210c4812b0f790d05b697a183803af7) (This used to be commit c6ff392778a75cc74db880fa3d657f5879ae55d5)
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/RHEL-CTDB/makerpms.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh
index f436f0c3fc..978cca92da 100755
--- a/packaging/RHEL-CTDB/makerpms.sh
+++ b/packaging/RHEL-CTDB/makerpms.sh
@@ -22,6 +22,7 @@ RPMSRCDIR=`rpm --eval %_sourcedir`
# At this point the RPMSPECDIR and RPMSRCDIR variables must have a value!
DIRNAME=$(dirname $0)
+TOPDIR=${DIRNAME}/../..
SPECFILE="samba.spec"
VERSION=$(grep ^Version ${DIRNAME}/${SPECFILE} | sed -e 's/^Version:\ \+//')
@@ -42,7 +43,7 @@ case $RPMVER in
;;
esac
-pushd ${DIRNAME}/../..
+pushd ${TOPDIR}
echo -n "Creating samba-${VERSION}.tar.bz2 ... "
git archive --prefix=samba-${VERSION}/ HEAD | bzip2 > ${RPMSRCDIR}/samba-${VERSION}.tar.bz2
RC=$?