]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/infrastructure/update-rsync.sh
Fix macOS SDL2 framework permissions
[xonotic/xonotic.git] / misc / infrastructure / update-rsync.sh
index bde13ebdc86228e4aad0120be1dc9c999ae8db3d..dbad1945481414ed17e0d3cd51246398d9baedeb 100755 (executable)
@@ -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