mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-08 23:19:27 +00:00
update scripts from hagger
This commit is contained in:
parent
c304083e67
commit
865c5dfcfc
18
misc/infrastructure/cat-if-error.sh
Executable file
18
misc/infrastructure/cat-if-error.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
logfile=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
if ! lockfile-create "$logfile.lock" >/dev/null 2>&1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
lockfile-touch "$logfile.lock" & lockpid=$!
|
||||||
|
|
||||||
|
if "$@" >"$logfile" 2>&1; then
|
||||||
|
: # all is well
|
||||||
|
else
|
||||||
|
cat "$logfile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
kill $lockpid
|
||||||
|
lockfile-remove "$logfile.lock"
|
3
misc/infrastructure/ircspam.pl
Executable file
3
misc/infrastructure/ircspam.pl
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ssh rpolzer@rm.endoftheinternet.org
|
@ -2,35 +2,18 @@
|
|||||||
|
|
||||||
mepwd=$PWD
|
mepwd=$PWD
|
||||||
me=$0
|
me=$0
|
||||||
if ! lockfile-create "$me"; then
|
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
lockfile-touch "$me" & lockpid=$!
|
|
||||||
trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT
|
|
||||||
trap 'exit 1' INT TERM
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
cd xonotic
|
cd xonotic
|
||||||
./all clean -m -fU -D
|
./all clean -m -fU -D
|
||||||
# like reclone but do not delete untracked, so q3map2.x86 compile stays
|
# like reclone but do not delete untracked, so q3map2.x86 compile stays
|
||||||
./all compile
|
./all compile -r
|
||||||
export __GL_FSAA_MODE=8
|
export DRIVER=soft
|
||||||
|
#export DRIVERFLAGS="+gl_texturecompression 1 -nofbo"
|
||||||
|
#export DRIVERFLAGS="+gl_texturecompression 1"
|
||||||
|
|
||||||
|
#startx /bin/sh -x ./misc/tools/xonotic-map-compiler-autobuild screenshot -- /usr/bin/Xvfb :7 -screen 0 1024x768x24
|
||||||
sh -x ./misc/tools/xonotic-map-compiler-autobuild screenshot
|
sh -x ./misc/tools/xonotic-map-compiler-autobuild screenshot
|
||||||
|
|
||||||
GET http://beta.xonotic.org/autobuild-bsp/ >/dev/null
|
lwp-request -m GET http://beta.xonotic.org/autobuild-bsp/?d,c >/dev/null
|
||||||
cd "$HOME/autobuild-bsp" || exit 1
|
|
||||||
now=`date +%s`
|
|
||||||
deltime=$(($now + 86400))
|
|
||||||
grep -l -- '-->(none)<!--' */index.html | cut -d / -f 1 | while IFS= read -r D; do
|
|
||||||
for F in "$D" "$D.pk3" "`echo "$D" | rev | cut -d - -f 3- | rev`-full-`echo "$D" | rev | cut -d - -f 1-2 | rev`.pk3"; do
|
|
||||||
echo "$deltime $F" >> .to_delete
|
|
||||||
done
|
|
||||||
done
|
|
||||||
while IFS=' ' read -r d f; do
|
|
||||||
if [ $d -lt $now ]; then
|
|
||||||
rm -rf "$f"
|
|
||||||
else
|
|
||||||
echo "$d $f"
|
|
||||||
fi
|
|
||||||
done < .to_delete > .to_delete_new
|
|
||||||
mv .to_delete_new .to_delete
|
|
||||||
|
Loading…
Reference in New Issue
Block a user