diff options
author | roberto <roberto@FreeBSD.org> | 1999-12-09 13:01:21 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 1999-12-09 13:01:21 +0000 |
commit | ef64b99e8412f2273dd2e8b3291c2f78ffc4667f (patch) | |
tree | fc0cfa1aab0ff6b228f511b410733ef4f35d1ead /contrib/ntp/build | |
download | FreeBSD-src-ef64b99e8412f2273dd2e8b3291c2f78ffc4667f.zip FreeBSD-src-ef64b99e8412f2273dd2e8b3291c2f78ffc4667f.tar.gz |
Virgin import of ntpd 4.0.98f
Diffstat (limited to 'contrib/ntp/build')
-rwxr-xr-x | contrib/ntp/build | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/contrib/ntp/build b/contrib/ntp/build new file mode 100755 index 0000000..e23865a --- /dev/null +++ b/contrib/ntp/build @@ -0,0 +1,66 @@ +#! /bin/sh + +LOGF=make.log +case "$1" in + -l) LOG=1 + shift + ;; + *) LOG=0 + ;; +esac + +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 + +CCSUF="" + +case "$CC" in + '') ;; + *) CCSUF="-$CC" + ;; +esac + +BDIR="$BDIR$CCSUF" + +[ -d "$BDIR" ] || mkdir $BDIR +[ -f "$BDIR/.buildcvo" ] || echo $CVO > $BDIR/.buildcvo +[ -f "$BDIR/.buildhost" ] || echo $IAM > $BDIR/.buildhost + +cd $BDIR + +( +cp /dev/null $LOGF + +[ -f config.status ] || ../configure $CONFIG_ARGS + +case "$MAKE" in + '') make && make check + ;; + *) $MAKE && $MAKE check + ;; +esac +) >> $LOGF 2>&1 + |