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 | |
---|
3 | LOGF=make.log |
---|
4 | IAM=`hostname || uname -n` |
---|
5 | |
---|
6 | case "$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 | ;; |
---|
23 | esac |
---|
24 | |
---|
25 | #set -e |
---|
26 | #set -x |
---|
27 | |
---|
28 | CVO=`./config.guess` |
---|
29 | case "$CVO" in |
---|
30 | *-*-*) ;; |
---|
31 | *) echo "config.guess returned <$CVO>, which makes no sense to me." |
---|
32 | exit 1 |
---|
33 | ;; |
---|
34 | esac |
---|
35 | |
---|
36 | MYNAME=`IFS=. ; set $IAM ; echo $1` |
---|
37 | |
---|
38 | case "$IAM" in |
---|
39 | *.udel.edu) |
---|
40 | BDIR=A.$MYNAME |
---|
41 | ;; |
---|
42 | *) |
---|
43 | BDIR=A.$CVO |
---|
44 | ;; |
---|
45 | esac |
---|
46 | |
---|
47 | KEYSUF="" |
---|
48 | |
---|
49 | case "$CONFIG_ARGS" in |
---|
50 | *--with-crypto=autokey*) |
---|
51 | KEYSUF="-autokey" |
---|
52 | ;; |
---|
53 | *--without-crypto*) |
---|
54 | [ -d rsaref2 ] && KEYSUF="-norsaref" |
---|
55 | ;; |
---|
56 | esac |
---|
57 | |
---|
58 | CCSUF="" |
---|
59 | |
---|
60 | case "$CC" in |
---|
61 | '') ;; |
---|
62 | *) CCSUF="-$CC" |
---|
63 | ;; |
---|
64 | esac |
---|
65 | |
---|
66 | BDIR="$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 | |
---|
72 | cd $BDIR |
---|
73 | |
---|
74 | ( |
---|
75 | [ -f config.status ] || ../configure $CONFIG_ARGS |
---|
76 | |
---|
77 | ./config.status |
---|
78 | |
---|
79 | case "$MAKE" in |
---|
80 | '') make && make check |
---|
81 | ;; |
---|
82 | *) $MAKE && $MAKE check |
---|
83 | ;; |
---|
84 | esac |
---|
85 | ) > $LOGF 2>&1 |
---|
Note: See
TracBrowser
for help on using the repository browser.