From 66a73f0dfa166e482c10a92248e8bb4fe985fee3 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 20 Nov 2010 18:28:27 +0100 Subject: [PATCH] another script of our infrastructure --- misc/infrastructure/update-rsync.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 misc/infrastructure/update-rsync.sh 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 -- 2.39.2