mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
packaging: enable calling RHEL-CTDB/makerpms.sh from other directories
Michael (cherry picked from commit 05168aaa8dba85ecc1b74afacdd4d5ddc5825cfa) (This used to be commit 7de8666c722be5dce8520f34a0823eb8767ab5d5)
This commit is contained in:
parent
5fe81eecf5
commit
7bb120c2a1
@ -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
|
||||
##
|
||||
|
Loading…
x
Reference in New Issue
Block a user