SCCS-vsn: usr.bin/cpp/cpp.sh 6.4
#
# %sccs.include.redist.sh%
#
#
# %sccs.include.redist.sh%
#
-# @(#)cpp.sh 6.3 (Berkeley) %G%
+# @(#)cpp.sh 6.4 (Berkeley) %G%
#
# Transitional front end to CCCP to make it behave like (Reiser) CCP:
# specifies -traditional
# doesn't search gcc-include
#
#
# Transitional front end to CCCP to make it behave like (Reiser) CCP:
# specifies -traditional
# doesn't search gcc-include
#
-cpp="eval exec /usr/libexec/cpp"
+cpp="eval /usr/libexec/cpp"
ALST="-traditional -D__GNUC__ -$ "
NSI=no
ALST="-traditional -D__GNUC__ -$ "
NSI=no
+OPTS=""
+INCS="-nostdinc"
-U__GNUC__)
ALST=`echo $ALST | sed -e 's/-D__GNUC__//'`
;;
-U__GNUC__)
ALST=`echo $ALST | sed -e 's/-D__GNUC__//'`
;;
+ -*)
+ OPTS="$OPTS '$A'"
+ ;;
+ if [ $NSI = "no" ]
+ then
+ INCS="$INCS -I/usr/include"
+ NSI=skip
+ fi
+ $cpp $ALST $INCS $LIBS $CSU $OPTS $A || exit $?
-INCS="-nostdinc $INCS"
-if [ $NSI = "no" ]
-then
- INCS="$INCS -I/usr/include"
-fi
-$cpp $ALST $INCS $LIBS $CSU $ARGS $GLIB $CLIB
-exit $?