Branch: Tag:

1999-10-08

1999-10-08 17:20:34 by Per Hedbor <ph@opera.com>

Only remove .o files if program == base_server/roxenloader.pike

Rev: server/start:1.79

1:   #!/bin/sh   # - # $Id: start,v 1.78 1999/09/10 22:08:15 mast Exp $ + # $Id: start,v 1.79 1999/10/08 17:20:34 per Exp $      pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"   
70:      ## Parse all arguments.   ## GNU-style, long options only, except for -D, simply passed on. + ARGS="" +    parse_args() {    while [ ! c"$1" = "c" ] ; do    case $1 in
77:    DEFINES="$DEFINES $1"    ;;    -l*) -  DEFINES="$DEFINES $1" +  ARGS="$DEFINES $1"    ;;   # Used by the 'install' script    --truss)
160:    once=1    shift    ;; -  -D*|-d*|-s*|-M*|-I*|-P*|-t*) +  -d*|-t*|-l*)    # Argument passed along to Pike. -  +  ARGS="$ARGS $1" +  ;; +  -D*|-M*|-I*|-P*) +  # Argument passed along to Pike.    DEFINES="$DEFINES $1"    ;;    '--version')
405:      start_roxen() {    if [ "x$DIR" != "x../configurations/" ] ; then -  args="$DEFINES $program --config-dir=$DIR $pass" +  args="$DEFINES $ARGS $program --config-dir=$DIR $pass"    else -  args="$DEFINES $program $pass" +  args="$DEFINES $ARGS $program $pass"    fi    if [ x$cd_to != x ] ; then    cd $cd_to
445:   DEFINES="$DEBUG $DEFINES"   PIKEVERSION=`$pike --version 2>&1`    +  + if [ "$program" = "base_server/roxenloader.pike" ] ; then    if [ "`cat .old_roxen_defines 2>/dev/null`" != "$PIKEVERSION $DEFINES" ] ; then    remove_old_dot_o_files "DEFINES changed"    fi -  +     echo "$PIKEVERSION $DEFINES" > .old_roxen_defines -  + fi      if [ -z "$once" ] ; then    if [ $verbose -gt 0 ]; then