From 8193b5694de1865a5038e10b7daabb2d6df7354b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 27 Aug 2008 12:09:40 +0200 Subject: packaging(RHEL-CTDB): auto-detect samba version from spec in makerpms.sh Michael (This used to be commit d18075524fa6b83fbb86aa0010c6190136e99865) --- packaging/RHEL-CTDB/makerpms.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packaging') diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh index 8a0345bbeb..421903258f 100755 --- a/packaging/RHEL-CTDB/makerpms.sh +++ b/packaging/RHEL-CTDB/makerpms.sh @@ -21,9 +21,11 @@ SRCDIR=`rpm --eval %_sourcedir` # At this point the SPECDIR and SRCDIR variables must have a value! -VERSION='3.3.0' +DIRNAME=$(dirname $0) + REVISION='ctdb' SPECFILE="samba.spec" +VERSION=$(grep ^Version ${DIRNAME}/${SPECFILE} | sed -e 's/^Version:\ \+//') DOCS="docs.tar.bz2" RPMVER=`rpm --version | awk '{print $3}'` RPM="rpmbuild" @@ -41,8 +43,6 @@ case $RPMVER in ;; esac -DIRNAME=$(dirname $0) - pushd ${DIRNAME}/../.. echo -n "Creating samba-${VERSION}.tar.bz2 ... " git archive --prefix=samba-${VERSION}/ HEAD | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2 -- cgit v1.2.3