1*46185Sdonn#!/bin/sh 2*46185Sdonn# 3*46185Sdonn# Copyright (c) 1990 The Regents of the University of California. 4*46185Sdonn# All rights reserved. 5*46185Sdonn# 6*46185Sdonn# This code is derived from software contributed to Berkeley by 7*46185Sdonn# the Systems Programming Group of the University of Utah Computer 8*46185Sdonn# Science Department. 9*46185Sdonn# 10*46185Sdonn# %sccs.include.redist.sh% 11*46185Sdonn# 12*46185Sdonn# @(#)cpp.sh 6.1 (Berkeley) 02/01/91 13*46185Sdonn# 14*46185Sdonn# Transitional front end to CCCP to make it behave like (Reiser) CCP: 15*46185Sdonn# specifies -traditional 16*46185Sdonn# doesn't search gcc-include 17*46185Sdonn# 18*46185Sdonncpp="eval exec /usr/libexec/cpp" 19*46185SdonnALST="-traditional -D__GNUC__" 20*46185SdonnNSI=no 21*46185SdonnARGS="" 22*46185SdonnINCS="" 23*46185Sdonn 24*46185Sdonnfor A do 25*46185Sdonn case $A in 26*46185Sdonn -nostdinc) 27*46185Sdonn NSI=yes 28*46185Sdonn ;; 29*46185Sdonn -traditional) 30*46185Sdonn ;; 31*46185Sdonn -I*) 32*46185Sdonn INCS="$INCS $A" 33*46185Sdonn ;; 34*46185Sdonn -U__GNUC__) 35*46185Sdonn ALST=`echo $ALST | sed -e 's/-D__GNUC__//'` 36*46185Sdonn ;; 37*46185Sdonn *) 38*46185Sdonn ARGS="$ARGS '$A'" 39*46185Sdonn ;; 40*46185Sdonn esac 41*46185Sdonndone 42*46185Sdonn 43*46185SdonnINCS="-nostdinc $INCS" 44*46185Sdonnif [ $NSI = "no" ] 45*46185Sdonnthen 46*46185Sdonn INCS="$INCS -I/usr/include" 47*46185Sdonnfi 48*46185Sdonn$cpp $ALST $INCS $LIBS $CSU $ARGS $GLIB $CLIB 49*46185Sdonnexit $? 50