mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-22 14:03:49 +00:00
another script of our infrastructure
This commit is contained in:
parent
cc8b8213fd
commit
66a73f0dfa
24
misc/infrastructure/update-rsync.sh
Executable file
24
misc/infrastructure/update-rsync.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user