Print this page
cw: give cw(1onbld) a new interface allowing for multiple arbitrary shadows

*** 75,98 **** if [[ $# -lt 1 ]] ; then ndrgen_usage "C pre-processor path is missing" else CC=$1 shift $(($OPTIND - 1)) - - # Check for cw being invoked with -_cc or -_gcc - if [[ $1 = "-_cc" || $1 = "-_gcc" ]] ; then - CC_ARG=$1 - shift $(($OPTIND - 1)) - fi fi fi if [[ $CC = "" ]] ; then ndrgen_usage "C pre-processor is not defined" fi ! if [ ! -f $CC ] || [ ! -x $CC ] ; then ndrgen_usage "cannot run $CC" fi for i do --- 75,95 ---- if [[ $# -lt 1 ]] ; then ndrgen_usage "C pre-processor path is missing" else CC=$1 shift $(($OPTIND - 1)) fi fi if [[ $CC = "" ]] ; then ndrgen_usage "C pre-processor is not defined" fi ! # Remove the non-cw options ! CC=${CC%% -- *} ! ! if [ ! -f ${CC%% *} ] || [ ! -x ${CC%% *} ] ; then ndrgen_usage "cannot run $CC" fi for i do
*** 104,114 **** BASENAME=`basename $i .ndl` TMP_NAME=$BASENAME.ndl.c cp $i $TMP_NAME ! if $CC $CC_ARG -E -D__a64 -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 \ -I. -I${INCDIR} -I${INCDIR}/ndl -DNDRGEN $TMP_NAME | \ $NDRPROG > $BASENAME.raw then touch ${BASENAME}_ndr.c ndrgen_copy_header $i ${BASENAME}_ndr.c --- 101,111 ---- BASENAME=`basename $i .ndl` TMP_NAME=$BASENAME.ndl.c cp $i $TMP_NAME ! if $CC -E -D__a64 -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 \ -I. -I${INCDIR} -I${INCDIR}/ndl -DNDRGEN $TMP_NAME | \ $NDRPROG > $BASENAME.raw then touch ${BASENAME}_ndr.c ndrgen_copy_header $i ${BASENAME}_ndr.c