X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=contrib%2Fplatformtest.sh;h=cfa1eccc81ea1a6387f936739d614543bdf379c4;hp=afe9420699a4c043f26449731d0feb0a0896d67f;hb=25b19e08e2083f7b1972820ca4c096687d7eeaca;hpb=110be707c306683c666bd736a8dcd7aef86d9f21 diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index afe94206..cfa1eccc 100755 --- a/contrib/platformtest.sh +++ b/contrib/platformtest.sh @@ -54,8 +54,8 @@ if [ $? -ne 0 ]; then cd .. fi -echo "$NAME: Checking for \"./autogen.sh\" script ..." -if [ -r ./autogen.sh ]; then +echo "$NAME: Checking for \"./configure\" script ..." +if [ ! -e ./configure ]; then echo "$NAME: Running \"./autogen.sh\" ..." [ -n "$VERBOSE" ] && ./autogen.sh || ./autogen.sh >/dev/null fi @@ -76,7 +76,7 @@ if [ -r ./configure ]; then R_RUN=$R_CHECK else ./src/ngircd/ngircd --help 2>/dev/null \ - | grep "^ngircd" >/dev/null + | grep "^ngIRCd" >/dev/null [ $? -eq 0 ] && R_RUN=1 fi fi @@ -85,9 +85,9 @@ fi # Get target platform information if [ -r "src/config.h" ]; then - CPU=`grep "TARGET_CPU" "src/config.h" | cut -d'"' -f2` - OS=`grep "TARGET_OS" "src/config.h" | cut -d'"' -f2` - VENDOR=`grep "TARGET_VENDOR" "src/config.h" | cut -d'"' -f2` + CPU=`grep "HOST_CPU" "src/config.h" | cut -d'"' -f2` + OS=`grep "HOST_OS" "src/config.h" | cut -d'"' -f2` + VENDOR=`grep "HOST_VENDOR" "src/config.h" | cut -d'"' -f2` PLATFORM="$CPU/$VENDOR/$OS" fi if [ -z "$PLATFORM" ]; then