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:
@ -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
|
||||
|
Reference in New Issue
Block a user