blob: 388fa8c276bf4e4092427a7ff20f8f0dcfafe6e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
function do_and_log {
log="scripts/latest-log.$$"
echo -n "$1... "
if ./otp_build $2 $3 >$log 2>&1; then
echo "done."
else
echo "failed."
tail -n 200 $log
echo "*** Failed ***"
exit 1
fi
}
do_and_log "Autoconfing" autoconf
do_and_log "Configuring" configure
do_and_log "Building OTP" boot -a
exit 0
|