git.annexia.org
/
febootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2dfc659
)
autobuild: Factor out HOSTNAME variable.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 7 Dec 2010 16:26:55 +0000
(16:26 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 7 Dec 2010 16:26:55 +0000
(16:26 +0000)
autobuild.sh
patch
|
blob
|
history
diff --git
a/autobuild.sh
b/autobuild.sh
index
3eefc7c
..
4dc5828
100755
(executable)
--- a/
autobuild.sh
+++ b/
autobuild.sh
@@
-2,18
+2,19
@@
PROJECT=febootstrap
MAILTO=libguestfs@redhat.com
PROJECT=febootstrap
MAILTO=libguestfs@redhat.com
+HOSTNAME="$(hostname -s)"
#----------------------------------------------------------------------
# Helper functions.
failed ()
{
#----------------------------------------------------------------------
# Helper functions.
failed ()
{
- mail -s "$
(hostname -s)
$PROJECT FAILED $1 $gitsha" $MAILTO < local-log
+ mail -s "$
HOSTNAME
$PROJECT FAILED $1 $gitsha" $MAILTO < local-log
}
ok ()
{
}
ok ()
{
- mail -s "$
(hostname -s)
$PROJECT success $gitsha" $MAILTO < local-log
+ mail -s "$
HOSTNAME
$PROJECT success $gitsha" $MAILTO < local-log
}
#----------------------------------------------------------------------
}
#----------------------------------------------------------------------
@@
-25,7
+26,7
@@
rm -f local-log
cat > local-log <<EOF
This is an automatic message generated by the builder on
cat > local-log <<EOF
This is an automatic message generated by the builder on
-$
(hostname -s)
for $PROJECT. Log files from the build
+$
HOSTNAME
for $PROJECT. Log files from the build
follow below.
$(uname -a)
follow below.
$(uname -a)