From 0118b2301b29af0f22845c7e3ebb5df74ba13aeb Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 19 Jan 2009 22:52:26 +0100 Subject: Don't use TMPDIR as variable, it's already used for other purposes. Don't include GIT revision in release version strings. --- source4/script/mkrelease.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source4/script/mkrelease.sh b/source4/script/mkrelease.sh index 94bd9d25cf..303dfe6d95 100755 --- a/source4/script/mkrelease.sh +++ b/source4/script/mkrelease.sh @@ -6,12 +6,14 @@ if [ ! -d ".git" -o `dirname $0` != "./source4/script" ]; then exit 1 fi -TMPDIR=`mktemp -d samba-XXXXX` -(git archive --format=tar HEAD | (cd $TMPDIR/ && tar xf -)) +OUTDIR=`mktemp -d samba-XXXXX` +(git archive --format=tar HEAD | (cd $OUTDIR/ && tar xf -)) + +echo SAMBA_VERSION_IS_GIT_SNAPSHOT=no >> $OUTDIR/source4/VERSION #Prepare the tarball for a Samba4 release, with some generated files, #but without Samba3 stuff (to avoid confusion) -( cd $TMPDIR/ || exit 1 +( cd $OUTDIR/ || exit 1 rm -rf README Manifest Read-Manifest-Now Roadmap source3 packaging docs-xml examples swat WHATSNEW.txt MAINTAINERS || exit 1 cd source4 || exit 1 ./autogen.sh || exit 1 @@ -19,14 +21,15 @@ TMPDIR=`mktemp -d samba-XXXXX` make dist || exit 1 ) || exit 1 -VERSION_FILE=$TMPDIR/source4/version.h +VERSION_FILE=$OUTDIR/source4/version.h if [ ! -f $VERSION_FILE ]; then echo "Cannot find version.h at $VERSION_FILE" exit 1; fi VERSION=`sed -n 's/^SAMBA_VERSION_STRING=//p' $VERSION_FILE` -mv $TMPDIR samba-$VERSION || exit 1 +echo "Version: $VERSION" +mv $OUTDIR samba-$VERSION || exit 1 tar -cf samba-$VERSION.tar samba-$VERSION || (rm -rf samba-$VERSION; exit 1) rm -rf samba-$VERSION || exit 1 echo "Now run: " -- cgit