From 1468db380cbc96277818e54b785bd46612b543f4 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 29 Sep 2006 04:37:08 +0000 Subject: fixed up hostname so that the domain name is not included; added skeleton to pd-devel script svn path=/trunk/; revision=6055 --- scripts/auto-build/pd-devel-auto-builder.sh | 27 ++++++++++++++++++++++++++ scripts/auto-build/pd-extended-auto-builder.sh | 1 + scripts/auto-build/pd-main-auto-builder.sh | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) (limited to 'scripts/auto-build') diff --git a/scripts/auto-build/pd-devel-auto-builder.sh b/scripts/auto-build/pd-devel-auto-builder.sh index daa32fd1..1524c13c 100644 --- a/scripts/auto-build/pd-devel-auto-builder.sh +++ b/scripts/auto-build/pd-devel-auto-builder.sh @@ -1,5 +1,32 @@ #!/bin/sh +HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]*\)\..*|\1|'` +SYSTEM=`uname -s` +DATE=`date +%Y-%m-%d` +TIME=`date +%H.%M.%S` +SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` + +case $SYSTEM in + Linux) + echo "Configuring for GNU/Linux" + ;; + Darwin) + echo "Configuring for Darwin/Mac OS X" + ;; + MINGW*) + echo "Configuring for MinGW/Windows" + ;; + CYGWIN*) + echo "Configuring for Cygwin/Windows" + ;; + *) + echo "ERROR: Platform $SYSTEM not supported!" + exit + ;; +esac + + + echo "This currently does nothing, but it could..." # if the below word prints, the status report email is not sent diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh index 8e50ee5a..48a78f0e 100755 --- a/scripts/auto-build/pd-extended-auto-builder.sh +++ b/scripts/auto-build/pd-extended-auto-builder.sh @@ -2,6 +2,7 @@ # this script is the first attempt to have an automated updater and builder +HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]*\)\..*|\1|'` SYSTEM=`uname -s` DATE=`date +%Y-%m-%d` TIME=`date +%H.%M.%S` diff --git a/scripts/auto-build/pd-main-auto-builder.sh b/scripts/auto-build/pd-main-auto-builder.sh index 9bd3df79..31ba3075 100755 --- a/scripts/auto-build/pd-main-auto-builder.sh +++ b/scripts/auto-build/pd-main-auto-builder.sh @@ -1,6 +1,6 @@ #!/bin/sh -HOSTNAME=`hostname` +HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]*\)\..*|\1|'` SYSTEM=`uname -s` DATE=`date +%Y-%m-%d` TIME=`date +%H.%M.%S` -- cgit v1.2.1