diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-09-28 16:23:18 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-09-28 16:23:18 +0000 |
commit | 432de6d7dfcd59fe61cc535c6334bc83e19d0572 (patch) | |
tree | 69598fe9727db7b42d93044eb1e6a59964baa597 /scripts/auto-build/auto-build-common | |
parent | 1a63f4df033ee433accb30839145ca48564e2fe6 (diff) |
set rsync server via a single variable in auto-build-common
svn path=/trunk/; revision=16312
Diffstat (limited to 'scripts/auto-build/auto-build-common')
-rw-r--r-- | scripts/auto-build/auto-build-common | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index c30ffa0c..fe05b017 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -5,6 +5,7 @@ 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|') +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 @@ -68,7 +69,7 @@ rsync_distro() # let rsync handle the cleanup with --delete DISTRO=$(basename $1) echo "rsyncing $DISTRO to ${1}:" - RSYNC_COMMAND="rsync -a --delete-before rsync://128.238.56.50/distros/${DISTRO}/ ${1}/" + RSYNC_COMMAND="rsync -a --delete-before rsync://${RSYNC_SERVER}/distros/${DISTRO}/ ${1}/" case $SYSTEM in mingw*) /c/cygwin/bin/sh -c "$RSYNC_COMMAND" |