From 1d29ab25360f4b337a6d4ed41f8894a89047487b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 29 Mar 2008 14:23:43 +1100 Subject: [PATCH] Don't leave release trees hanging around Andrew Bartlett (This used to be commit e06911de3326fcbd751932d6ab1b9d4644619135) --- source4/script/mkrelease.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/script/mkrelease.sh b/source4/script/mkrelease.sh index d74d5d133ff..bd3314441cf 100755 --- a/source4/script/mkrelease.sh +++ b/source4/script/mkrelease.sh @@ -11,7 +11,8 @@ TMPDIR=`mktemp -d samba-XXXXX` VERSION=`sed -n 's/^SAMBA_VERSION_STRING=//p' $TMPDIR/source/version.h` mv $TMPDIR samba-$VERSION || exit 1 -tar -cf samba-$VERSION.tar 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: " echo "gpg --detach-sign --armor samba-$VERSION.tar" echo "gzip samba-$VERSION.tar"