#!/bin/sh # # Copyright (c) 1990 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 6.2 (Berkeley) 03/08/91 # # 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" ALST="-traditional -D__GNUC__ -$ " NSI=no ARGS="" INCS="" for A do case $A in -nostdinc) NSI=yes ;; -traditional) ;; -I*) INCS="$INCS $A" ;; -U__GNUC__) ALST=`echo $ALST | sed -e 's/-D__GNUC__//'` ;; *) ARGS="$ARGS '$A'" ;; esac done INCS="-nostdinc $INCS" if [ $NSI = "no" ] then INCS="$INCS -I/usr/include" fi $cpp $ALST $INCS $LIBS $CSU $ARGS $GLIB $CLIB exit $?