X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=contrib%2Fplatformtest.sh;h=6449a67cdbb5dd6da1342cda88f5a88a828ce910;hb=69be7a85a2117f0526ca4e113a806be989dc2f53;hp=432243a754d01a402a01572fc886573a87c2633a;hpb=864f3df575eafc91f4f97ef48b34c27afd08999e;p=ngircd-alex.git diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index 432243a7..6449a67c 100755 --- a/contrib/platformtest.sh +++ b/contrib/platformtest.sh @@ -51,9 +51,9 @@ if [ $? -ne 0 ]; then cd .. fi -echo "$NAME: Checking for ./autogen.sh script ..." +echo "$NAME: Checking for \"./autogen.sh\" script ..." if [ -r ./autogen.sh ]; then - echo "$NAME: Running ./autogen.sh ..." + echo "$NAME: Running \"./autogen.sh\" ..." [ -n "$VERBOSE" ] && ./autogen.sh || ./autogen.sh >/dev/null fi @@ -96,8 +96,8 @@ if [ -r "Makefile" ]; then CC=$(grep "^CC = " Makefile | cut -d' ' -f3) $CC --version 2>&1 | grep -i "GCC" >/dev/null if [ $? -eq 0 ]; then - COMPILER=$($CC --version | head -1 | awk "{ print \$3 }" \ - | cut -d'-' -f1) + COMPILER=$($CC --version | head -1 \ + | cut -d')' -f2 | cut -d' ' -f2) COMPILER="gcc $COMPILER" else case "$CC" in