Skip to content
Browse files

set $hostname and $date before use

  • Loading branch information...
1 parent aaaed25 commit 10b5f7a6b7bf2b6251e76a656951141231b0c0b9 itojun committed Feb 9, 2001
Showing with 4 additions and 3 deletions.
  1. +4 −3 build.sh
View
7 build.sh
@@ -1,7 +1,7 @@
#! /bin/sh
#
# build script for KAME buildlab. may not be useful for normal usage.
-# $KAME: build.sh,v 1.5 2001/02/05 00:58:21 itojun Exp $
+# $KAME: build.sh,v 1.6 2001/02/09 12:36:40 itojun Exp $
#
echo the script is only for KAME buildlab, it is not useful in general
@@ -12,6 +12,9 @@ export PATH
HOME=/home/buildlab
export HOME
+hostname=`hostname`
+date=`date`
+
x=`find /var/tmp -name autobuild\* -print`
if test "x" != "x$x"; then
mail -s "two autobuilds running: $hostname around $date" buildlab@kame.net <<EOF
@@ -27,9 +30,7 @@ EOF
fi
cd ~buildlab/k/kame
-hostname=`hostname`
hosttop=`echo $hostname | sed -e 's/\..*//'`
-date=`date`
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

0 comments on commit 10b5f7a

Please sign in to comment.
Something went wrong with that request. Please try again.