From a730d607eb190887c7dd33484dd036d752d30d38 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 1 Mar 2009 06:31:55 +0000 Subject: use /etc/hostname for hostname so that chroot builds are named appropriately svn path=/trunk/; revision=10823 --- scripts/auto-build/auto-build-common | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index 2c004316..0106a69f 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -1,9 +1,14 @@ # these are common variables for the auto-build scripts -HOSTNAME=$(hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|') SYSTEM=$(uname -s | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|') DATE=$(date +%Y-%m-%d) TIME=$(date +%H.%M.%S) +HOSTNAME=$(hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|') + +# use the hostname from /etc/hostname in case we are a chroot build enviroment +if [ -e /etc/hostname ]; then + HOSTNAME=`cat /etc/hostname` +fi ## the following creates a spam-bot that sends emails to an address that has not asked for it ## because of the spam-problem, i (jmz) have disabled it -- cgit v1.2.1