commit - c47340daf7e078d5d04930146cb9307d94b09bc1
commit + e6db639971bcaa0d9cf9828be53a16c35297c2f6
blob - 5a3692a61da88ad6998b5a4be1753c1702ea8951
blob + 2f9a492d9b6601030a04d3c22aac1548fb5886e7
--- util/got-build-regress.sh
+++ util/got-build-regress.sh
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
prog=`basename $0`
-usage="$prog [-b branch] [-f] [-w worktree ] email-address [email-address ...]"
+usage="$prog [-b branch] [-f] [-w worktree ] [ -r from-address ] email-address [email-address ...]"
branch=master
worktree=$HOME/got
+fromaddr_arg=
force=0
-args=`getopt b:fw: $*`
+args=`getopt b:fw:r: $*`
if [ $? -ne 0 ]
then
echo "usage: $usage" >&2
force=1; shift;;
-w)
worktree="$2"; shift; shift;;
+ -r)
+ fromaddr_arg="-r $2"; shift; shift;;
--)
shift; break;;
esac
log_cmd build.log /usr/local/bin/got update -b "$branch"
update_status="$?"
if [ "$update_status" != "0" ]; then
- mail -s "$prog update failure" $recipients < build.log
+ mail $fromaddr_arg -s "$prog update failure" $recipients < build.log
rm -rf "$lockfile"
exit 0
fi
log_cmd build.log make -j $ncpu
build_status="$?"
if [ "$build_status" != "0" ]; then
- mail -s "$prog build failure" $recipients < build.log
+ mail $fromaddr_arg -s "$prog build failure" $recipients < build.log
rm -rf "$lockfile"
exit 0
fi
log_cmd build.log make -j $ncpu web
build_status="$?"
if [ "$build_status" != "0" ]; then
- mail -s "$prog build failure" $recipients < build.log
+ mail $fromaddr_arg -s "$prog build failure" $recipients < build.log
rm -rf "$lockfile"
exit 0
fi
if [ "$regress_status" != "0" -o "$regress_failure_grep" == "0" ]; then
printf "\n\n\t Test failures:\n\n" >> build.log
cat failures.log >> build.log
- mail -s "$prog regress failure" $recipients < build.log
+ mail $fromaddr_arg -s "$prog regress failure" $recipients < build.log
rm -rf "$lockfile"
exit 0
fi
log_cmd build.log make -j $ncpu GOT_RELEASE=Yes web
build_status="$?"
if [ "$build_status" != "0" ]; then
- mail -s "$prog release mode build failure" $recipients < build.log
+ mail $fromaddr_arg -s "$prog release mode build failure" $recipients < build.log
rm -rf "$lockfile"
exit 0
fi