#!/bin/sh # # Copyright (c) 1990, 1993 # The Regents of the University of California. All rights reserved. # # This code is derived from software contributed to Berkeley by # the Systems Programming Group of the University of Utah Computer # Science Department. # # %sccs.include.redist.sh% # # @(#)cpp.sh 8.1 (Berkeley) 06/06/93 # # Transitional front end to CCCP to make it behave like (Reiser) CCP: # specifies -traditional # doesn't search gcc-include # PATH=/usr/bin:/bin CPP=/usr/libexec/gcc2/cpp ALST="-traditional -D__GNUC__ -$ " NSI=no OPTS="" INCS="-nostdinc" FOUNDFILES=no for A do case $A in -nostdinc) NSI=yes ;; -traditional) ;; -I*) INCS="$INCS $A" ;; -U__GNUC__) ALST=`echo $ALST | sed -e 's/-D__GNUC__//'` ;; -*) OPTS="$OPTS '$A'" ;; *) FOUNDFILES=yes if [ $NSI = "no" ] then INCS="$INCS -I/usr/include" NSI=skip fi eval $CPP $ALST $INCS $LIBS $CSU $OPTS $A || exit $? ;; esac done if [ $FOUNDFILES = "no" ] then # read standard input if [ $NSI = "no" ] then INCS="$INCS -I/usr/include" fi eval exec $CPP $ALST $INCS $LIBS $CSU $OPTS fi exit 0