1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-06-12 08:21:58 +03:00

* scripts/cpp: Test the exit status from 'type', not 'awk'.

* scripts/cpp: Test the exit status from 'type', not 'awk'.
This commit is contained in:
Geoff Keating
2001-12-06 01:21:03 +00:00
parent 5786183905
commit 71ede9a8f8
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,9 @@
#! /bin/sh
cpp=`which cpp 2>/dev/null`
if test $? -ne 0; then
cpp=`type cpp 2>/dev/null | awk '{ print $NF }'`
if test $? -ne 0; then
if type cpp 2>/dev/null >/dev/null; then
cpp=`type cpp 2>/dev/null | awk '{ print $NF }'`
else
cpp=`gcc -print-file-name=cpp 2>/dev/null`
if test $? -ne 0; then
if test -x /lib/cpp; then