]> de.git.xonotic.org Git - xonotic/xonotic.git/blob - misc/infrastructure/update-rsync.sh
Restore the GLX binary on Linux systems
[xonotic/xonotic.git] / misc / infrastructure / update-rsync.sh
1 #!/bin/sh
2
3 set -x
4
5 d=$1
6
7 cd /var/rsync/autobuild
8
9 for BUILD in '' -low -lowdds; do
10         mkdir .new
11         cd .new
12         unzip /var/www/autobuild/Xonotic-"$d$BUILD".zip
13         cd Xonotic/data
14         for X in *"$d"*; do
15                 pre=${X%$d*}
16                 post=${X##*$d}
17                 mv "$X" "$pre"rsync"$post"
18         done
19         cd ../../..
20         mv Xonotic"$BUILD" Xonotic.old || true
21         mv .new/Xonotic Xonotic"$BUILD"
22         rmdir .new
23         rm -rf Xonotic.old
24 done