From 0ea02e8126d3984da53da2d8f1557556f7c7ff1e Mon Sep 17 00:00:00 2001 From: Andrew Kroeger Date: Fri, 28 Mar 2008 22:53:01 -0500 Subject: mkrelease: Add checks to ensure run from top-level directory of repository. (This used to be commit 7d4c02fdfc9ca1a48a0a1e4672765636d4c4a717) --- source4/script/mkrelease.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -)) -- cgit