repo: ngircd action: commit revision: path_from: revision_from: 10c7a156876f75ab5e21385d2775143dceefe2e9: path_to: revision_to:
commit 10c7a156876f75ab5e21385d2775143dceefe2e9 Author: Alexander BartonDate: Fri Apr 29 22:45:55 2011 +0200 contrib/platformtest.sh: fix gcc version detection Now the version of GNU C is detected correctly on SuSE Linux, too ... diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh
--- a/contrib/platformtest.sh
+++ b/contrib/platformtest.sh
@@ -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
-----END OF PAGE-----