diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-11-17 05:12:42 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-11-17 05:12:42 +0000 |
commit | 7f0be8e2ed7fa92d06067dfc0fa70ab4e1b5588d (patch) | |
tree | 79da6808e170d7609c75c950046b7e993f9dfc1d /scripts/auto-build | |
parent | b464a98ab94cbe3f0e2814161a366afdeabfe99d (diff) |
switch rsync uploading to apt.puredata.info
svn path=/trunk/; revision=16556
Diffstat (limited to 'scripts/auto-build')
-rw-r--r-- | scripts/auto-build/auto-build-common | 2 | ||||
-rwxr-xr-x | scripts/auto-build/pd-extended-auto-builder.sh | 4 | ||||
-rwxr-xr-x | scripts/auto-build/pd-extended-source-tarball.sh | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index 40d6a69b..f0d75424 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -5,7 +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 +RSYNC_SERVER=apt.puredata.info # use the hostname from /etc/hostname in case we are a chroot build enviroment if [ -e /etc/hostname ]; then diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh index d9db1cf6..c26c1ad2 100755 --- a/scripts/auto-build/pd-extended-auto-builder.sh +++ b/scripts/auto-build/pd-extended-auto-builder.sh @@ -101,9 +101,9 @@ upload_build () echo "Uploading $archive" upload_filename=$(ls -1 ${archive} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|") if [ -e ${archive} ]; then - rsync -a --chmod=a+r ${archive} rsync://${RSYNC_SERVER}/upload/${DATE}/${upload_filename} && \ + rsync -a --chmod=a+r ${archive} -e ssh ${RSYNC_SERVER}:/home/apt/www/auto-build/${DATE}/${upload_filename} && \ md5sum ${archive} | sed "s|^\([0-9a-f][0-9a-f]* \).*|\1${archive}|" > ${archive}.md5 && \ - rsync -a ${archive}.md5 rsync://${RSYNC_SERVER}/upload/${DATE}/${upload_filename}.md5 && \ + rsync -a --chmod=a+r ${archive}.md5 -e ssh ${RSYNC_SERVER}:/home/apt/www/auto-build/${DATE}/${upload_filename}.md5 && \ echo "successfully uploaded: ${upload_filename}" && \ echo SUCCESS fi diff --git a/scripts/auto-build/pd-extended-source-tarball.sh b/scripts/auto-build/pd-extended-source-tarball.sh index f82e2f60..de4e5efc 100755 --- a/scripts/auto-build/pd-extended-source-tarball.sh +++ b/scripts/auto-build/pd-extended-source-tarball.sh @@ -11,7 +11,7 @@ rsync_file() file=$1 file_upload=$(basename $file) # if the rsync fails, ignore and carry on - (rsync -a ${file} rsync://${RSYNC_SERVER}/upload/${DATE}/${file_upload} && \ + (rsync -a --chmod=a+r -e ssh ${file} ${RSYNC_SERVER}:/home/apt/www/auto-build/${DATE}/${file_upload} && \ echo "successfully uploaded: ${file_upload}") || \ true } |