diff options
-rwxr-xr-x | source4/script/mkrelease.sh | 6 |
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 -)) |