source: trunk/third/xntp/build @ 17260

Revision 17260, 1.1 KB checked in by zacheiss, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17259, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3LOGF=make.log
4IAM=`hostname || uname -n`
5
6case "$1" in
7 0.*)
8    SIG=$1
9    shift
10    CONFIG_ARGS="$@"
11    KEY=`sed -e q < .buildkey`
12    case "$SIG" in
13     $KEY) ;;
14     *)
15        echo "Wrong directory for build on host $IAM"
16        exit 1
17        ;;
18    esac
19    ;;
20 *)
21    CONFIG_ARGS="$@"
22    ;;
23esac
24
25#set -e
26#set -x
27
28CVO=`./config.guess`
29case "$CVO" in
30 *-*-*) ;;
31 *) echo "config.guess returned <$CVO>, which makes no sense to me."
32    exit 1
33    ;;
34esac
35
36MYNAME=`IFS=. ; set $IAM ; echo $1`
37
38case "$IAM" in
39 *.udel.edu)
40    BDIR=A.$MYNAME
41    ;;
42 *)
43    BDIR=A.$CVO
44    ;;
45esac
46
47KEYSUF=""
48
49case "$CONFIG_ARGS" in
50 *--with-crypto=autokey*)
51    KEYSUF="-autokey"
52    ;;
53 *--without-crypto*)
54    [ -d rsaref2 ] && KEYSUF="-norsaref"
55    ;;
56esac
57
58CCSUF=""
59
60case "$CC" in
61 '') ;;
62 *) CCSUF="-$CC"
63    ;;
64esac
65
66BDIR="$BDIR$KEYSUF$CCSUF"
67
68[ -d "$BDIR" ] || mkdir $BDIR
69[ -f "$BDIR/.buildcvo" ] || echo $CVO > $BDIR/.buildcvo
70[ -f "$BDIR/.buildhost" ] || echo $IAM > $BDIR/.buildhost
71
72cd $BDIR
73
74(
75[ -f config.status ] || ../configure $CONFIG_ARGS
76
77./config.status
78
79case "$MAKE" in
80 '') make && make check
81     ;;
82 *)  $MAKE && $MAKE check
83     ;;
84esac
85) > $LOGF 2>&1
Note: See TracBrowser for help on using the repository browser.