pike.git / NT / tools / rntcc

version» Context lines:

pike.git/NT/tools/rntcc:1:   #!/bin/sh      . $NTTOOLS      set -e      OPTS=""   CFLAGS=""   SOURCES=""   OBJECTS="" - OUTPUT= + OUTPUT=a.out   OPERATION=linking   INCLUDE_PATH= - LDOPTS="" + LDOPTS="OPTION STACK=8m"      while test "$#" != 0; do    case $1 in    -shared) ;;    -E) OPERATION=preprocessing ;;    -c) OPERATION=compiling ;;    -g*) CFLAGS="$CFLAGS -d2 " ; LDOPTS="$LDOPTS DEBUG WATCOM ALL" ;;    -O) CFLAGS="$CFLAGS -ox" ;;    -O2) CFLAGS="$CFLAGS -otexan" ;;    *.c) SOURCES="$SOURCES $1" ;;
pike.git/NT/tools/rntcc:81:    IPATH="$IPATH;`fixpath $a`"    IPATHS="$IPATHS:$a:"    ;;    esac   done         ERRORFILE=TMP$$.err   rm $ERRORFILE 2>/dev/null 1>/dev/null || :    - CFLAGS="$CFLAGS -zq -i$IPATH -fr$ERRORFILE" + CFLAGS="$CFLAGS -zq -hw -fr$ERRORFILE" +    if [ "x$OUTPUT" != x ]; then -  CFLAGS="$CFLAGS -fo$OUTPUT" +  OFLAGS="$OFLAGS -fo$OUTPUT" + else +  OFLAGS=   fi      case $OPERATION in    compiling) -  do_cmd wcc386 $CFLAGS `fixpath $SOURCES $OBJECTS` +  do_cmd wcc386 $CFLAGS $OFLAGS `fixpath $SOURCES $OBJECTS`    TARGET=$OUTPUT    ;;       preprocessing)    do_cmd wcc386 -p $CFLAGS `fixpath $SOURCES`    ;;       linking)    for a in `fixpath $SOURCES`    do
pike.git/NT/tools/rntcc:133:   fi      if [ "x$TARGET" != x ]; then    if [ ! -f "$TARGET" ]; then    echo "RNTCC: output file not generated"    exit 1    fi   fi      if [ $OPERATION = linking ]; then +  PWD=`pwd`    echo >$OUTPUT "#!/bin/sh"    echo >>$OUTPUT ". \$NTTOOLS"    echo >>$OUTPUT "set -e" -  echo >>$OUTPUT "silent_do_cmd $TARGET \"\$@\"" +  echo >>$OUTPUT "silent_do_cmd '`fixpath $NTDRIVE$PWD/$TARGET`' \"\$@\""    chmod +x $OUTPUT   fi