summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-16 01:26:47 +0200
committerMichael Adam <obnox@samba.org>2008-05-16 03:15:23 +0200
commit7bb120c2a185ed5df78d5070fafea0a7553ff667 (patch)
treefd58a4a33b0bb3e8c5f20cf99458503ea5164be6
parent5fe81eecf5f0b5d0a20a180a75b9b9a1b4cca27c (diff)
downloadsamba-7bb120c2a185ed5df78d5070fafea0a7553ff667.tar.gz
samba-7bb120c2a185ed5df78d5070fafea0a7553ff667.tar.bz2
samba-7bb120c2a185ed5df78d5070fafea0a7553ff667.zip
packaging: enable calling RHEL-CTDB/makerpms.sh from other directories
Michael (cherry picked from commit 05168aaa8dba85ecc1b74afacdd4d5ddc5825cfa) (This used to be commit 7de8666c722be5dce8520f34a0823eb8767ab5d5)
-rwxr-xr-xpackaging/RHEL-CTDB/makerpms.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh
index 0ee00b7688..a9d49bc2a4 100755
--- a/packaging/RHEL-CTDB/makerpms.sh
+++ b/packaging/RHEL-CTDB/makerpms.sh
@@ -41,7 +41,9 @@ case $RPMVER in
;;
esac
-pushd ../..
+DIRNAME=$(dirname $0)
+
+pushd ${DIRNAME}/../..
echo -n "Creating samba-${VERSION}.tar.bz2 ... "
git archive --prefix=samba-${VERSION}/ HEAD | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2
RC=$?
@@ -60,11 +62,15 @@ if [ "x${DOCS_TARBALL}" != "x" ] && [ -f ${DOCS_TARBALL} ]; then
cp ${DOCS_TARBALL} ${SRCDIR}/${DOCS}
fi
+pushd ${DIRNAME}
+
chmod 755 setup/filter-requires-samba.sh
tar --exclude=.svn -jcvf - setup > ${SRCDIR}/setup.tar.bz2
cp -p ${SPECFILE} ${SPECDIR}
+popd
+
##
## Build
##