mirror of
git://sourceware.org/git/glibc.git
synced 2026-10-05 16:50:46 +08:00
22 lines
394 B
Bash
22 lines
394 B
Bash
#! /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
|
||
|
|
cpp=`gcc -print-file-name=cpp 2>/dev/null`
|
||
|
|
if test $? -ne 0; then
|
||
|
|
if test -x /lib/cpp; then
|
||
|
|
cpp=/lib/cpp
|
||
|
|
else
|
||
|
|
echo "cpp not found" 1>&2
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
fi
|
||
|
|
fi
|
||
|
|
fi
|
||
|
|
|
||
|
|
exec $cpp $*
|
||
|
|
Local Variables:
|
||
|
|
mode: sh
|
||
|
|
End:
|