From 7bb120c2a185ed5df78d5070fafea0a7553ff667 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 16 May 2008 01:26:47 +0200 Subject: packaging: enable calling RHEL-CTDB/makerpms.sh from other directories Michael (cherry picked from commit 05168aaa8dba85ecc1b74afacdd4d5ddc5825cfa) (This used to be commit 7de8666c722be5dce8520f34a0823eb8767ab5d5) --- packaging/RHEL-CTDB/makerpms.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ## -- cgit