You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
421 B

#! /bin/sh
cpp=`which cpp 2>/dev/null`
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
cpp=/lib/cpp
else
echo "cpp not found" 1>&2
exit 1
fi
fi
fi
fi
exec $cpp $*
Local Variables:
mode: sh
End: