aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/auto-build-common
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-30 17:58:06 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-30 17:58:06 +0000
commit078a96953d751363fdb390499dd5c140cf604803 (patch)
tree1db46b294f0b3366900ad20114206eb18559d76e /scripts/auto-build/auto-build-common
parent73b8a6bd6a054ee594cf67c5dabbd9e7f450d33c (diff)
untabify and fix indenting
svn path=/trunk/; revision=16493
Diffstat (limited to 'scripts/auto-build/auto-build-common')
-rw-r--r--scripts/auto-build/auto-build-common72
1 files changed, 36 insertions, 36 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common
index 74ee0cea..ab4aca3c 100644
--- a/scripts/auto-build/auto-build-common
+++ b/scripts/auto-build/auto-build-common
@@ -9,9 +9,9 @@ RSYNC_SERVER=blinky.at.or.at
# use the hostname from /etc/hostname in case we are a chroot build enviroment
if [ -e /etc/hostname ]; then
- HOSTNAME=`cat /etc/hostname`
+ HOSTNAME=`cat /etc/hostname`
else
- HOSTNAME=$(hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|')
+ HOSTNAME=$(hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|')
fi
## the following creates a spam-bot that sends emails to an address that has not asked for it
@@ -30,24 +30,24 @@ fi
## the autobuilder
if [ -e ${HOME}/auto-build-common.local ]; then
- . ${HOME}/auto-build-common.local
- running_on_server=yes
+ . ${HOME}/auto-build-common.local
+ running_on_server=yes
else
- running_on_server=no
- echo "Could not find local configuration in \"${HOME}/auto-build-common.local\""
- echo "Skipping... (see ${HOME}/auto-build-common for instructions)"
- echo
+ running_on_server=no
+ echo "Could not find local configuration in \"${HOME}/auto-build-common.local\""
+ echo "Skipping... (see ${HOME}/auto-build-common for instructions)"
+ echo
fi
# cygwin/Mingw don't have 'mail', but do have 'email' which is close enough.
# To get around the troubles with mail servers, we'll contact the SMTP server
# of the mailing lists directly (mail.iem.at).
if [ -x /usr/bin/mail ]; then
- MAIL_COMMAND=/usr/bin/mail
+ MAIL_COMMAND=/usr/bin/mail
elif [ -x /bin/mail ]; then
- MAIL_COMMAND=/bin/mail
+ MAIL_COMMAND=/bin/mail
else
- MAIL_COMMAND="email --smtp-server mail.iem.at"
+ MAIL_COMMAND="email --smtp-server mail.iem.at"
fi
@@ -55,31 +55,31 @@ fi
# print out ip addresses for debugging
print_ip_address()
{
- echo -n "hostname: "
- hostname
- echo "---------------------------"
- if [ -x /sbin/ifconfig ]; then
- /sbin/ifconfig
- else
- ipconfig
- fi
+ echo -n "hostname: "
+ hostname
+ echo "---------------------------"
+ if [ -x /sbin/ifconfig ]; then
+ /sbin/ifconfig
+ else
+ ipconfig
+ fi
}
rsync_distro()
{
# let rsync handle the cleanup with --delete
- DISTRO=$(basename $1)
- echo "rsyncing $DISTRO to ${1}:"
- RSYNC_COMMAND="rsync -a --delete-before rsync://${RSYNC_SERVER}/distros/${DISTRO}/ ${1}/"
- case $SYSTEM in
- mingw*)
- /c/cygwin/bin/sh -c "$RSYNC_COMMAND"
- ;;
- *)
- $RSYNC_COMMAND
- ;;
- esac
+ DISTRO=$(basename $1)
+ echo "rsyncing $DISTRO to ${1}:"
+ RSYNC_COMMAND="rsync -a --delete-before rsync://${RSYNC_SERVER}/distros/${DISTRO}/ ${1}/"
+ case $SYSTEM in
+ mingw*)
+ /c/cygwin/bin/sh -c "$RSYNC_COMMAND"
+ ;;
+ *)
+ $RSYNC_COMMAND
+ ;;
+ esac
}
# Mac OS X's included git or svn might be really old, so try Fink first
@@ -146,13 +146,13 @@ clean_and_update_folder()
get_pd_version()
{
PD_MAJOR_VERSION=$(grep PD_MAJOR_VERSION $1/pd/src/m_pd.h | \
- sed 's|^.define *PD_MAJOR_VERSION *\([0-9]*\).*|\1|' )
+ sed 's|^.define *PD_MAJOR_VERSION *\([0-9]*\).*|\1|' )
PD_MINOR_VERSION=$(grep PD_MINOR_VERSION $1/pd/src/m_pd.h | \
- sed 's|^.define *PD_MINOR_VERSION *\([0-9]*\).*|\1|' )
+ sed 's|^.define *PD_MINOR_VERSION *\([0-9]*\).*|\1|' )
PD_BUGFIX_VERSION=$(grep PD_BUGFIX_VERSION $1/pd/src/m_pd.h | \
- sed 's|^.define *PD_BUGFIX_VERSION *\([0-9]*\).*|\1|' )
+ sed 's|^.define *PD_BUGFIX_VERSION *\([0-9]*\).*|\1|' )
PD_TEST_VERSION=$(grep PD_TEST_VERSION $1/pd/src/m_pd.h | \
- sed 's|^.define *PD_TEST_VERSION *"\(.*\)".*|\1|' | \
+ sed 's|^.define *PD_TEST_VERSION *"\(.*\)".*|\1|' | \
sed 's|extended-||')
if [ -z $PD_TEST_VERSION ]; then
echo $PD_MAJOR_VERSION.$PD_MINOR_VERSION.$PD_BUGFIX_VERSION
@@ -181,6 +181,6 @@ set_debian_changelog_version()
{
version=$1
rootdir=$2
- sed -i "s|^pd-extended (.*)|pd-extended ($version-1)|" \
- $rootdir/debian/changelog
+ sed -i "s|^pd-extended (.*)|pd-extended ($version-1)|" \
+ $rootdir/debian/changelog
}