X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=misc%2Finfrastructure%2Fupdate-rsync.sh;h=dbad1945481414ed17e0d3cd51246398d9baedeb;hb=d8b1ca494580e9a79eeb2a783fd4b58e8701c0eb;hp=bde13ebdc86228e4aad0120be1dc9c999ae8db3d;hpb=66a73f0dfa166e482c10a92248e8bb4fe985fee3;p=xonotic%2Fxonotic.git diff --git a/misc/infrastructure/update-rsync.sh b/misc/infrastructure/update-rsync.sh index bde13ebd..dbad1945 100755 --- a/misc/infrastructure/update-rsync.sh +++ b/misc/infrastructure/update-rsync.sh @@ -1,15 +1,22 @@ #!/bin/sh -set -x +set -ex d=$1 cd /var/rsync/autobuild -for BUILD in '' -low -lowdds; do +for BUILD in '' -high -mappingsupport; do + rm -rf .new mkdir .new cd .new - unzip /var/www/autobuild/Xonotic-"$d$BUILD".zip + if ! unzip ~/Xonotic-"$d$BUILD".zip; then + good=false + #for f in ~/Xonotic-"$d$BUILD".zip; do + # unzip "$f" && good=true && break + #done + $good + fi cd Xonotic/data for X in *"$d"*; do pre=${X%$d*} @@ -17,6 +24,7 @@ for BUILD in '' -low -lowdds; do mv "$X" "$pre"rsync"$post" done cd ../../.. + rm -rf Xonotic.old mv Xonotic"$BUILD" Xonotic.old || true mv .new/Xonotic Xonotic"$BUILD" rmdir .new