build revision 54359
1#! /bin/sh 2 3LOGF=make.log 4case "$1" in 5 -l) LOG=1 6 shift 7 ;; 8 *) LOG=0 9 ;; 10esac 11 12CONFIG_ARGS="$@" 13 14IAM=`hostname || uname -n` 15 16#set -e 17#set -x 18 19CVO=`./config.guess` 20case "$CVO" in 21 *-*-*) ;; 22 *) echo "config.guess returned <$CVO>, which makes no sense to me." 23 exit 1 24 ;; 25esac 26 27MYNAME=`IFS=. ; set $IAM ; echo $1` 28 29case "$IAM" in 30 *.udel.edu) 31 BDIR=A.$MYNAME 32 ;; 33 *) 34 BDIR=A.$CVO 35 ;; 36esac 37 38CCSUF="" 39 40case "$CC" in 41 '') ;; 42 *) CCSUF="-$CC" 43 ;; 44esac 45 46BDIR="$BDIR$CCSUF" 47 48[ -d "$BDIR" ] || mkdir $BDIR 49[ -f "$BDIR/.buildcvo" ] || echo $CVO > $BDIR/.buildcvo 50[ -f "$BDIR/.buildhost" ] || echo $IAM > $BDIR/.buildhost 51 52cd $BDIR 53 54( 55cp /dev/null $LOGF 56 57[ -f config.status ] || ../configure $CONFIG_ARGS 58 59case "$MAKE" in 60 '') make && make check 61 ;; 62 *) $MAKE && $MAKE check 63 ;; 64esac 65) >> $LOGF 2>&1 66 67