summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kroeger <andrew@sprocks.gotdns.com>2008-03-28 22:53:01 -0500
committerAndrew Kroeger <andrew@sprocks.gotdns.com>2008-03-28 22:53:01 -0500
commit0ea02e8126d3984da53da2d8f1557556f7c7ff1e (patch)
tree3aef3ca02e9f405e4bd5bd88e648f9d356fa4c30
parentbf0db7eb030a22f3f91ee86ffe5fb96bc7d7661e (diff)
downloadsamba-0ea02e8126d3984da53da2d8f1557556f7c7ff1e.tar.gz
samba-0ea02e8126d3984da53da2d8f1557556f7c7ff1e.tar.bz2
samba-0ea02e8126d3984da53da2d8f1557556f7c7ff1e.zip
mkrelease: Add checks to ensure run from top-level directory of repository.
(This used to be commit 7d4c02fdfc9ca1a48a0a1e4672765636d4c4a717)
-rwxr-xr-xsource4/script/mkrelease.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/script/mkrelease.sh b/source4/script/mkrelease.sh
index e6b6c2af07..0af738deb5 100755
--- a/source4/script/mkrelease.sh
+++ b/source4/script/mkrelease.sh
@@ -1,5 +1,11 @@
#!/bin/sh
+if [ ! -d ".git" -o `dirname $0` != "./source/script" ]; then
+ echo "Run this script from the top-level directory in the"
+ echo "repository as: ./source/script/mkrelease.sh"
+ exit 1
+fi
+
TMPDIR=`mktemp -d samba-XXXXX`
(git archive --format=tar HEAD | (cd $TMPDIR/ && tar xf -))