1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

packaging(RHEL-CTDB): introduce variable TOPDIR

Michael
(cherry picked from commit 74e335ebf210c4812b0f790d05b697a183803af7)
This commit is contained in:
Michael Adam 2008-09-04 14:10:45 +02:00
parent cbfd805bd2
commit c6ff392778

View File

@ -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=$?