Permalink
Browse files

touch cookie file if autobuild goes okay.

  • Loading branch information...
1 parent 215608c commit ada26aa64515e1bb9da1e07f75832a163eabc670 itojun committed Jan 17, 2001
Showing with 7 additions and 3 deletions.
  1. +3 −0 Makefile
  2. +4 −3 build.sh
View
@@ -97,5 +97,8 @@ autobuild:
esac
@echo -n '${.TARGET} done at '
@date
+.if defined(AUTOBUILD_COOKIE)
+ touch ${AUTOBUILD_COOKIE}
+.endif
.include "Makefile.inc"
View
@@ -1,7 +1,7 @@
#! /bin/sh
#
# build script for KAME buildlab. may not be useful for normal usage.
-# $KAME: build.sh,v 1.2 2001/01/12 05:02:56 itojun Exp $
+# $KAME: build.sh,v 1.3 2001/01/17 06:23:58 itojun Exp $
#
PATH=/usr/pkg/bin:/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin:/usr/sbin:/sbin
@@ -27,8 +27,8 @@ cd ~buildlab/k/kame
hostname=`hostname`
hosttop=`echo $hostname | sed -e 's/\..*//'`
date=`date`
-make TARGET=$hosttop autobuild 2>&1 | tee /var/tmp/autobuild.$$ | mail -s "$hostname autobuild at $date" $hosttop@buildlab.kame.net
-if test $? != 0; then
+make TARGET=$hosttop AUTOBUILD_COOKIE=/var/tmp/done.$$ autobuild | 2>&1 tee /var/tmp/autobuild.$$ | mail -s "$hostname autobuild at $date" $hosttop@buildlab.kame.net
+if ! test -f /var/tmp/done.$$; then
mail -s "autobuild failure: $hostname around $date" buildlab@kame.net <<EOF
autobuild on $hostname seem to have failed.
started: $date
@@ -37,3 +37,4 @@ result URL: http://master.buildlab.kame.net/$hosttop/
EOF
fi
rm /var/tmp/autobuild.$$
+rm /var/tmp/done.$$

0 comments on commit ada26aa

Please sign in to comment.