summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-29 14:37:09 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-29 14:37:09 +1100
commitbf0db7eb030a22f3f91ee86ffe5fb96bc7d7661e (patch)
tree1a4293f7b1ebec9ca46fe0c1ce3690eea1fd9889
parent1d29ab25360f4b337a6d4ed41f8894a89047487b (diff)
downloadsamba-bf0db7eb030a22f3f91ee86ffe5fb96bc7d7661e.tar.gz
samba-bf0db7eb030a22f3f91ee86ffe5fb96bc7d7661e.tar.bz2
samba-bf0db7eb030a22f3f91ee86ffe5fb96bc7d7661e.zip
Add a few more safety catches to the mkrelease.sh script.
Andrew Bartlett (This used to be commit 96eb3f1691fbc8808e3cb80a45283fb7dff53826)
-rwxr-xr-xsource4/script/mkrelease.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/script/mkrelease.sh b/source4/script/mkrelease.sh
index bd3314441c..e6b6c2af07 100755
--- a/source4/script/mkrelease.sh
+++ b/source4/script/mkrelease.sh
@@ -1,9 +1,9 @@
#!/bin/sh
TMPDIR=`mktemp -d samba-XXXXX`
-(git archive --format=tar HEAD | (cd $TMPDIR/ ; tar xf -))
+(git archive --format=tar HEAD | (cd $TMPDIR/ && tar xf -))
-( cd $TMPDIR/source
+( cd $TMPDIR/source || exit 1
./autogen.sh || exit 1
./configure || exit 1
make dist || exit 1