diff options
| author | Alexander Barton <alex@barton.de> | 2011-04-29 22:45:55 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-04-30 01:03:17 +0200 |
| commit | 10c7a156876f75ab5e21385d2775143dceefe2e9 (patch) | |
| tree | daced1d6f193b29b409829db47dac17df99459ae /contrib | |
| parent | 05748aa5eeaf75438a0bb238967667605fe4d52e (diff) | |
| download | ngircd-10c7a156876f75ab5e21385d2775143dceefe2e9.tar.gz ngircd-10c7a156876f75ab5e21385d2775143dceefe2e9.zip | |
contrib/platformtest.sh: fix gcc version detection
Now the version of GNU C is detected correctly on SuSE Linux, too ...
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/platformtest.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index 85d3a1d7..6449a67c 100755 --- 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 |