diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-03-29 14:23:43 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-03-29 14:23:43 +1100 |
commit | 1d29ab25360f4b337a6d4ed41f8894a89047487b (patch) | |
tree | d526742c908945676e75715927bec8220622e369 /source4 | |
parent | 40bcb11d29993991f956cf90894f312b159ed993 (diff) | |
download | samba-1d29ab25360f4b337a6d4ed41f8894a89047487b.tar.gz samba-1d29ab25360f4b337a6d4ed41f8894a89047487b.tar.bz2 samba-1d29ab25360f4b337a6d4ed41f8894a89047487b.zip |
Don't leave release trees hanging around
Andrew Bartlett
(This used to be commit e06911de3326fcbd751932d6ab1b9d4644619135)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/mkrelease.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/script/mkrelease.sh b/source4/script/mkrelease.sh index d74d5d133f..bd3314441c 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" |