NetBSD/dist/ntp/build

65 lines
859 B
Plaintext
Raw Normal View History

2000-03-29 16:38:44 +04:00
#! /bin/sh
LOGF=make.log
CONFIG_ARGS="$@"
IAM=`hostname || uname -n`
#set -e
#set -x
CVO=`./config.guess`
case "$CVO" in
*-*-*) ;;
*) echo "config.guess returned <$CVO>, which makes no sense to me."
exit 1
;;
esac
MYNAME=`IFS=. ; set $IAM ; echo $1`
case "$IAM" in
*.udel.edu)
BDIR=A.$MYNAME
;;
*)
BDIR=A.$CVO
;;
esac
2000-04-22 18:51:59 +04:00
RSASUF=""
case "$CONFIG_ARGS" in
*--without-rsaref*)
[ -d rsaref2 ] && RSASUF="-norsa"
;;
esac
2000-03-29 16:38:44 +04:00
CCSUF=""
case "$CC" in
'') ;;
*) CCSUF="-$CC"
;;
esac
2000-04-22 18:51:59 +04:00
BDIR="$BDIR$RSASUF$CCSUF"
2000-03-29 16:38:44 +04:00
[ -d "$BDIR" ] || mkdir $BDIR
[ -f "$BDIR/.buildcvo" ] || echo $CVO > $BDIR/.buildcvo
[ -f "$BDIR/.buildhost" ] || echo $IAM > $BDIR/.buildhost
cd $BDIR
(
[ -f config.status ] || ../configure $CONFIG_ARGS
case "$MAKE" in
'') make && make check
;;
*) $MAKE && $MAKE check
;;
esac
) > $LOGF 2>&1