From: Mark Wooding Date: Sat, 7 Jan 2012 16:01:54 +0000 (+0000) Subject: bin/mdw-build: Accept a `.git' directory as a top-level. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/d43de82b21911b0713c8950aa1d9e83774a8c7cb?ds=inline bin/mdw-build: Accept a `.git' directory as a top-level. Most projects are likely to have one of these, even if they don't have anything else distinctive. --- diff --git a/bin/mdw-build b/bin/mdw-build index d8be795..5ea9e12 100755 --- a/bin/mdw-build +++ b/bin/mdw-build @@ -137,7 +137,8 @@ yesno () { ### Do the building. ## Find the top-level package directory. -while [ ! -f configure.ac -a ! -f configure.in -a ! -f .links ]; do +while [ ! -f configure.ac -a ! -f configure.in -a \ + ! -f .links -a ! -d .git ]; do case "$(pwd)" in /) fail "couldn't find top-level directory"