X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=contrib%2Fplatformtest.sh;h=ac545757ffca9e44749477f56d64a6382a7637ee;hp=765fb3964cfd5c19d2ac7e1ec7fd288334e6e56a;hb=45d3e6aa91295bee056df8be5c3ed224420fba02;hpb=0bd3fb88b2c2a433a68c82c3eaba2fd13b8fcd0b diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index 765fb396..ac545757 100755 --- a/contrib/platformtest.sh +++ b/contrib/platformtest.sh @@ -54,6 +54,16 @@ if [ $? -ne 0 ]; then cd .. fi +echo "$NAME: Checking for GIT tree ..." +if [ -d .git ]; then + echo "$NAME: Checking for \"git\" command ..." + git version >/dev/null 2>&1 + if [ $? -eq 0 ]; then + echo "$NAME: Running \"git clean\" ..." + [ -n "$VERBOSE" ] && git clean -dxf || git clean -dxf >/dev/null + fi +fi + echo "$NAME: Checking for \"./configure\" script ..." if [ ! -e ./configure ]; then echo "$NAME: Running \"./autogen.sh\" ..."