bin/mdw-build: Accept a `.git' directory as a top-level.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 7 Jan 2012 16:01:54 +0000 (16:01 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 7 Jan 2012 16:01:54 +0000 (16:01 +0000)
Most projects are likely to have one of these, even if they don't have
anything else distinctive.

bin/mdw-build

index d8be795..5ea9e12 100755 (executable)
@@ -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"