From: Rudolf Polzer Date: Sat, 20 Nov 2010 17:28:27 +0000 (+0100) Subject: another script of our infrastructure X-Git-Tag: xonotic-v0.1.0preview~43 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=66a73f0dfa166e482c10a92248e8bb4fe985fee3;p=xonotic%2Fxonotic.git another script of our infrastructure --- diff --git a/misc/infrastructure/update-rsync.sh b/misc/infrastructure/update-rsync.sh new file mode 100755 index 00000000..bde13ebd --- /dev/null +++ b/misc/infrastructure/update-rsync.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +set -x + +d=$1 + +cd /var/rsync/autobuild + +for BUILD in '' -low -lowdds; do + mkdir .new + cd .new + unzip /var/www/autobuild/Xonotic-"$d$BUILD".zip + cd Xonotic/data + for X in *"$d"*; do + pre=${X%$d*} + post=${X##*$d} + mv "$X" "$pre"rsync"$post" + done + cd ../../.. + mv Xonotic"$BUILD" Xonotic.old || true + mv .new/Xonotic Xonotic"$BUILD" + rmdir .new + rm -rf Xonotic.old +done