]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Merge remote branch 'origin/terencehill/mapping_update'
authorSamual <samual@xonotic.org>
Sun, 26 Feb 2012 01:04:17 +0000 (20:04 -0500)
committerSamual <samual@xonotic.org>
Sun, 26 Feb 2012 01:04:17 +0000 (20:04 -0500)
17 files changed:
all
misc/buildfiles/osx/Xonotic.app/Contents/MacOS/xonotic-osx-sdl
misc/infrastructure/cat-if-error.sh [new file with mode: 0755]
misc/infrastructure/git-mirror-update.sh [new file with mode: 0755]
misc/infrastructure/git-vhost.conf [new file with mode: 0644]
misc/infrastructure/ircspam.pl [new file with mode: 0755]
misc/infrastructure/xonotic-map-screenshot.cron
misc/tools/rsync-updater/update-to-autobuild.bat [new file with mode: 0644]
misc/tools/rsync-updater/update-to-autobuild.sh [new file with mode: 0755]
misc/tools/rsync-updater/update-to-release.bat [new file with mode: 0644]
misc/tools/rsync-updater/update-to-release.sh [new file with mode: 0755]
misc/tools/rsync-updater/update-xonotic.bat [deleted file]
misc/tools/rsync-updater/update-xonotic.sh [deleted file]
misc/tools/xonotic-map-compiler-autobuild
misc/tools/xonotic-map-screenshot
server/rcon2irc/rcon2irc-example.conf
server/rcon2irc/rcon2irc.pl

diff --git a/all b/all
index de482c746186eb173108dd34fd7f9cb27f2f8364..a5f5d8ceb42e1918a89bf44a750f1ff07e781c8f 100755 (executable)
--- a/all
+++ b/all
@@ -942,8 +942,9 @@ case "$cmd" in
                debug=debug
                snowleopardhack=false
                if [ -z "$CC" ]; then
-                       export CC="gcc -DSUPPORTIPV6"
+                       export CC="gcc"
                fi
+               export CC="$CC -DSUPPORTIPV6"
                while :; do
                        case "$1" in
                                -0)
index 30f40a955b7fa59ff18f24dd3b6af175fbca8dc1..f5789e8e8d3e29caf094775df25773696aa2b47d 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+# if we ever want to remove this script, install_name_tool can be used to replace the DYLD_LIBRARY_PATH hack
 export DYLD_LIBRARY_PATH="${0%/*}"
        # same dir as the executable
 
diff --git a/misc/infrastructure/cat-if-error.sh b/misc/infrastructure/cat-if-error.sh
new file mode 100755 (executable)
index 0000000..1789af5
--- /dev/null
@@ -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"
diff --git a/misc/infrastructure/git-mirror-update.sh b/misc/infrastructure/git-mirror-update.sh
new file mode 100755 (executable)
index 0000000..fca7ff6
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+#exec >/dev/null 2>&1
+
+mkdir -p /var/cache/git/xonotic
+cd /var/cache/git/xonotic
+ssh xonotic@git.xonotic.org ./send-git-configs.sh | tar xvf -
+
+for X in /var/cache/git/*/*.git; do
+       cd "$X"
+       git config remote.origin.fetch "+refs/*:refs/*"
+       git config remote.origin.mirror "true"
+       git config remote.origin.url "git://nl.git.xonotic.org/${X#/var/cache/git/}"
+       git fetch
+       git remote prune origin
+       git gc --auto
+       touch git-daemon-export-ok
+done
diff --git a/misc/infrastructure/git-vhost.conf b/misc/infrastructure/git-vhost.conf
new file mode 100644 (file)
index 0000000..771c80d
--- /dev/null
@@ -0,0 +1,53 @@
+<VirtualHost *:80>
+       ServerName de.git.xonotic.org
+       ServerAlias nl.git.xonotic.org
+       ServerAlias us.git.xonotic.org
+       ServerAlias git.xonotic.org
+       ServerAdmin divVerent@xonotic.org
+
+       SetEnv GIT_PROJECT_ROOT /var/cache/git
+
+       AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$          /var/cache/git/$1
+       AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/cache/git/$1
+       ScriptAliasMatch \
+              "(?x)^/(.*/(HEAD | \
+                              info/refs | \
+                              objects/info/[^/]+ | \
+                              git-(upload|receive)-pack))$" \
+              /usr/lib/git-core/git-http-backend/$1
+
+       DocumentRoot /usr/share/gitweb
+       Alias /gitweb /usr/share/gitweb/static
+       DirectoryIndex gitweb.cgi
+
+       <Directory /usr/lib/git-core>
+               <Files git-http-backend>
+                       Allow from all
+                       Deny from none
+                       Order Allow,Deny
+
+                       Options +ExecCGI
+                       SetHandler cgi-script
+               </Files>
+       </Directory>
+
+       <Directory /var/cache/git>
+               Allow from all
+               Deny from none
+               Order Allow,Deny
+
+               Options Indexes
+       </Directory>
+
+       <Directory /usr/share/gitweb>
+               Allow from all
+               Deny from none
+               Order Allow,Deny
+
+               Options Indexes
+               <Files gitweb.cgi>
+                       Options +ExecCGI
+                       SetHandler cgi-script
+               </Files>
+       </Directory>
+</VirtualHost>
diff --git a/misc/infrastructure/ircspam.pl b/misc/infrastructure/ircspam.pl
new file mode 100755 (executable)
index 0000000..8d742f3
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ssh rpolzer@rm.endoftheinternet.org
index 0435c1426d1d5db913391aa054626d7794acdac6..688e266236351e9cc927d8488382b43770f0fb8a 100755 (executable)
@@ -2,35 +2,18 @@
 
 mepwd=$PWD
 me=$0
-if ! lockfile-create "$me"; then
-        exit 1
-fi
-lockfile-touch "$me" & lockpid=$!
-trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT
-trap 'exit 1' INT TERM
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl
 
 set -e
 cd xonotic
 ./all clean -m -fU -D
 # like reclone but do not delete untracked, so q3map2.x86 compile stays
-./all compile
-export __GL_FSAA_MODE=8
+./all compile -r
+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
 
-GET http://beta.xonotic.org/autobuild-bsp/ >/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
+lwp-request -m GET http://beta.xonotic.org/autobuild-bsp/?d,c >/dev/null
diff --git a/misc/tools/rsync-updater/update-to-autobuild.bat b/misc/tools/rsync-updater/update-to-autobuild.bat
new file mode 100644 (file)
index 0000000..2e2a323
--- /dev/null
@@ -0,0 +1,113 @@
+@echo off\r
+\r
+if "%1" == "did-copy" goto copied\r
+cd %~dp0\r
+rmdir /s /q %TEMP%\xonotic-rsync-updater\r
+mkdir %TEMP%\xonotic-rsync-updater\r
+for %%f in (*.exe *.dll *.bat) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
+%TEMP%\xonotic-rsync-updater\%~n0 did-copy\r
+exit\r
+\r
+:copied\r
+\r
+set buildtype=release\r
+if "%~n0" == "update-to-autobuild" set buildtype=autobuild\r
+\r
+set options=-Prtzil --executability --delete-after --delete-excluded --stats\r
+\r
+if exist Xonotic-low goto xonoticlow\r
+if exist Xonotic-high goto xonotichigh\r
+if exist ..\..\..\.git goto xonoticdatagit\r
+if exist ..\..\..\data goto xonoticdata\r
+goto xonotic\r
+:xonoticlow\r
+       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
+       set target=Xonotic-low/\r
+       goto endxonotic\r
+:xonotichigh\r
+       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
+       set target=Xonotic-high/\r
+       goto endxonotic\r
+:xonoticdatagit\r
+       echo NOTE: this is a git repository download. Using the regular update method.\r
+       ..\..\..\all update\r
+       goto end\r
+:xonoticdata\r
+       if exist ..\..\..\misc\tools\rsync-updater\rsync.exe goto xonoticdatarsync\r
+       echo FATAL: rsync not in misc\tools\rsync-updater. This update script cannot be used.\r
+       goto end\r
+:xonoticdatarsync\r
+       set PATH=misc\tools\rsync-updater;%PATH%\r
+       cd ..\..\..\r
+       if exist data\xonotic-rsync-data-low.pk3 goto xonoticdatalow\r
+       if exist data\xonotic-*-data-low.pk3 goto xonoticdatalowfuzzy\r
+       if exist data\xonotic-rsync-data-high.pk3 goto xonoticdatahigh\r
+       if exist data\xonotic-*-data-high.pk3 goto xonoticdatahighfuzzy\r
+       if exist data\xonotic-rsync-data.pk3 goto xonoticdatanormal\r
+       if exist data\xonotic-*-data.pk3 goto xonoticdatanormalfuzzy\r
+       echo FATAL: unrecognized Xonotic build. This update script cannot be used.\r
+       goto end\r
+:xonoticdatalow\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
+               goto endxonoticdata\r
+:xonoticdatalowfuzzy\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
+               set options=%options% -y\r
+               goto endxonoticdata\r
+:xonoticdatahigh\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
+               goto endxonoticdata\r
+:xonoticdatahighfuzzy\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
+               set options=%options% -y\r
+               goto endxonoticdata\r
+:xonoticdatanormal\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic/\r
+               goto endxonoticdata\r
+:xonoticdatanormalfuzzy\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic/\r
+               set options=%options% -y\r
+               goto endxonoticdata\r
+:endxonoticdata\r
+       set target=./\r
+       goto endxonotic\r
+:xonotic\r
+       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic/\r
+       set target=Xonotic/\r
+       goto endxonotic\r
+:endxonotic\r
+\r
+set excludes=\r
+if not "%XONOTIC_INCLUDE_ALL%" == "" goto endbit\r
+set excludes=%excludes% --exclude=/xonotic-linux*\r
+set excludes=%excludes% --exclude=/xonotic-osx-*\r
+set excludes=%excludes% --exclude=/Xonotic*.app\r
+set excludes=%excludes% --exclude=/fteqcc/fteqcc.linux*\r
+set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx\r
+\r
+if "%ProgramFiles(x86)%" == "" goto bit32\r
+:bit64\r
+       if not "%XONOTIC_INCLUDE_32BIT%" == "" goto endbit\r
+       set excludes=%excludes% --exclude=/xonotic.exe\r
+       set excludes=%excludes% --exclude=/xonotic-sdl.exe\r
+       set excludes=%excludes% --exclude=/xonotic-dedicated.exe\r
+       set excludes=%excludes% --exclude=/fteqcc/fteqcc.exe\r
+       set excludes=%excludes% --exclude=/bin32\r
+       set excludes=%excludes% --exclude=/*.dll\r
+       goto endbit\r
+:bit32\r
+       set excludes=%excludes% --exclude=/xonotic-x64.exe\r
+       set excludes=%excludes% --exclude=/xonotic-x64-sdl.exe\r
+       set excludes=%excludes% --exclude=/xonotic-x64-dedicated.exe\r
+       set excludes=%excludes% --exclude=/fteqcc/fteqcc-x64.exe\r
+       set excludes=%excludes% --exclude=/bin64\r
+       goto endbit\r
+:endbit\r
+\r
+for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
+%TEMP%\xonotic-rsync-updater\rsync %options% %excludes% %url% %target%\r
+%TEMP%\xonotic-rsync-updater\chmod -R a+x %target%\r
+\r
+:end\r
+pause\r
+rmdir /s /q %TEMP%\xonotic-rsync-updater\r
diff --git a/misc/tools/rsync-updater/update-to-autobuild.sh b/misc/tools/rsync-updater/update-to-autobuild.sh
new file mode 100755 (executable)
index 0000000..1ebefb5
--- /dev/null
@@ -0,0 +1,93 @@
+#!/bin/sh
+
+if [ -d "${0%/*}" ]; then
+       cd "${0%/*}"
+fi
+
+if ! which rsync >/dev/null; then
+       echo >&2 "FATAL: rsync not found, please install the rsync package"
+       exit 1
+fi
+
+case "${0##*/}" in
+       update-to-autobuild.sh)
+               buildtype=autobuild
+               ;;
+       *)
+               buildtype=release
+               ;;
+esac
+
+options="-Prtzil --executability --delete-after --delete-excluded --stats"
+
+if [ -d "Xonotic-low" ]; then
+       url="rsync://beta.xonotic.org/$buildtype-Xonotic-low/"
+       target="Xonotic-low/"
+elif [ -d "Xonotic-high" ]; then
+       url="rsync://beta.xonotic.org/$buildtype-Xonotic-high/"
+       target="Xonotic-high/"
+elif [ -d "../../../.git" ]; then
+       echo >&2 "NOTE: this is a git repository download. Using the regular update method."
+       exec ../../../all update
+elif [ -d "../../../data" ]; then
+       if [ -f ../../../data/xonotic-rsync-data-low.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-low/"
+       elif [ -f ../../../data/xonotic-*-data-low.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-low/"
+               options="$options -y" # use fuzzy matching because file names differ
+       elif [ -f ../../../data/xonotic-rsync-data-high.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-high/"
+       elif [ -f ../../../data/xonotic-*-data-high.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-high/"
+               options="$options -y" # use fuzzy matching because file names differ
+       elif [ -f ../../../data/xonotic-rsync-data.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic/"
+       elif [ -f ../../../data/xonotic-*-data.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic/"
+               options="$options -y" # use fuzzy matching because file names differ
+       else
+               echo >&2 "FATAL: unrecognized Xonotic build. This update script cannot be used."
+               exit 1
+       fi
+       target="../../.."
+else
+       url="rsync://beta.xonotic.org/$buildtype-Xonotic/"
+       target="Xonotic/"
+fi
+
+excludes=
+if [ -z "$XONOTIC_INCLUDE_ALL" ]; then
+       excludes="$excludes --exclude=/*.exe"
+       excludes="$excludes --exclude=/fteqcc/*.exe"
+       excludes="$excludes --exclude=/bin32"
+       excludes="$excludes --exclude=/*.dll"
+       excludes="$excludes --exclude=/bin64"
+
+       case `uname`:`uname -m` in
+               Darwin:*)
+                       excludes="$excludes --exclude=/xonotic-linux*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux*"
+                       ;;
+               Linux:x86_64)
+                       excludes="$excludes --exclude=/Xonotic*.app"
+                       excludes="$excludes --exclude=/xonotic-osx-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
+                       if [ -z "$XONOTIC_INCLUDE_32BIT" ]; then
+                               excludes="$excludes --exclude=/xonotic-linux32-*"
+                               excludes="$excludes --exclude=/fteqcc/fteqcc.linux32"
+                       fi
+                       ;;
+               Linux:i?86)
+                       excludes="$excludes --exclude=/Xonotic*.app"
+                       excludes="$excludes --exclude=/xonotic-osx-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
+                       excludes="$excludes --exclude=/xonotic-linux64-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux64"
+                       ;;
+               *)
+                       echo >&2 "WARNING: Could not detect architecture - downloading all architectures"
+                       ;;
+       esac
+fi
+
+rsync $options $excludes "$url" "$target"
diff --git a/misc/tools/rsync-updater/update-to-release.bat b/misc/tools/rsync-updater/update-to-release.bat
new file mode 100644 (file)
index 0000000..2e2a323
--- /dev/null
@@ -0,0 +1,113 @@
+@echo off\r
+\r
+if "%1" == "did-copy" goto copied\r
+cd %~dp0\r
+rmdir /s /q %TEMP%\xonotic-rsync-updater\r
+mkdir %TEMP%\xonotic-rsync-updater\r
+for %%f in (*.exe *.dll *.bat) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
+%TEMP%\xonotic-rsync-updater\%~n0 did-copy\r
+exit\r
+\r
+:copied\r
+\r
+set buildtype=release\r
+if "%~n0" == "update-to-autobuild" set buildtype=autobuild\r
+\r
+set options=-Prtzil --executability --delete-after --delete-excluded --stats\r
+\r
+if exist Xonotic-low goto xonoticlow\r
+if exist Xonotic-high goto xonotichigh\r
+if exist ..\..\..\.git goto xonoticdatagit\r
+if exist ..\..\..\data goto xonoticdata\r
+goto xonotic\r
+:xonoticlow\r
+       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
+       set target=Xonotic-low/\r
+       goto endxonotic\r
+:xonotichigh\r
+       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
+       set target=Xonotic-high/\r
+       goto endxonotic\r
+:xonoticdatagit\r
+       echo NOTE: this is a git repository download. Using the regular update method.\r
+       ..\..\..\all update\r
+       goto end\r
+:xonoticdata\r
+       if exist ..\..\..\misc\tools\rsync-updater\rsync.exe goto xonoticdatarsync\r
+       echo FATAL: rsync not in misc\tools\rsync-updater. This update script cannot be used.\r
+       goto end\r
+:xonoticdatarsync\r
+       set PATH=misc\tools\rsync-updater;%PATH%\r
+       cd ..\..\..\r
+       if exist data\xonotic-rsync-data-low.pk3 goto xonoticdatalow\r
+       if exist data\xonotic-*-data-low.pk3 goto xonoticdatalowfuzzy\r
+       if exist data\xonotic-rsync-data-high.pk3 goto xonoticdatahigh\r
+       if exist data\xonotic-*-data-high.pk3 goto xonoticdatahighfuzzy\r
+       if exist data\xonotic-rsync-data.pk3 goto xonoticdatanormal\r
+       if exist data\xonotic-*-data.pk3 goto xonoticdatanormalfuzzy\r
+       echo FATAL: unrecognized Xonotic build. This update script cannot be used.\r
+       goto end\r
+:xonoticdatalow\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
+               goto endxonoticdata\r
+:xonoticdatalowfuzzy\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
+               set options=%options% -y\r
+               goto endxonoticdata\r
+:xonoticdatahigh\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
+               goto endxonoticdata\r
+:xonoticdatahighfuzzy\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
+               set options=%options% -y\r
+               goto endxonoticdata\r
+:xonoticdatanormal\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic/\r
+               goto endxonoticdata\r
+:xonoticdatanormalfuzzy\r
+               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic/\r
+               set options=%options% -y\r
+               goto endxonoticdata\r
+:endxonoticdata\r
+       set target=./\r
+       goto endxonotic\r
+:xonotic\r
+       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic/\r
+       set target=Xonotic/\r
+       goto endxonotic\r
+:endxonotic\r
+\r
+set excludes=\r
+if not "%XONOTIC_INCLUDE_ALL%" == "" goto endbit\r
+set excludes=%excludes% --exclude=/xonotic-linux*\r
+set excludes=%excludes% --exclude=/xonotic-osx-*\r
+set excludes=%excludes% --exclude=/Xonotic*.app\r
+set excludes=%excludes% --exclude=/fteqcc/fteqcc.linux*\r
+set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx\r
+\r
+if "%ProgramFiles(x86)%" == "" goto bit32\r
+:bit64\r
+       if not "%XONOTIC_INCLUDE_32BIT%" == "" goto endbit\r
+       set excludes=%excludes% --exclude=/xonotic.exe\r
+       set excludes=%excludes% --exclude=/xonotic-sdl.exe\r
+       set excludes=%excludes% --exclude=/xonotic-dedicated.exe\r
+       set excludes=%excludes% --exclude=/fteqcc/fteqcc.exe\r
+       set excludes=%excludes% --exclude=/bin32\r
+       set excludes=%excludes% --exclude=/*.dll\r
+       goto endbit\r
+:bit32\r
+       set excludes=%excludes% --exclude=/xonotic-x64.exe\r
+       set excludes=%excludes% --exclude=/xonotic-x64-sdl.exe\r
+       set excludes=%excludes% --exclude=/xonotic-x64-dedicated.exe\r
+       set excludes=%excludes% --exclude=/fteqcc/fteqcc-x64.exe\r
+       set excludes=%excludes% --exclude=/bin64\r
+       goto endbit\r
+:endbit\r
+\r
+for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
+%TEMP%\xonotic-rsync-updater\rsync %options% %excludes% %url% %target%\r
+%TEMP%\xonotic-rsync-updater\chmod -R a+x %target%\r
+\r
+:end\r
+pause\r
+rmdir /s /q %TEMP%\xonotic-rsync-updater\r
diff --git a/misc/tools/rsync-updater/update-to-release.sh b/misc/tools/rsync-updater/update-to-release.sh
new file mode 100755 (executable)
index 0000000..1ebefb5
--- /dev/null
@@ -0,0 +1,93 @@
+#!/bin/sh
+
+if [ -d "${0%/*}" ]; then
+       cd "${0%/*}"
+fi
+
+if ! which rsync >/dev/null; then
+       echo >&2 "FATAL: rsync not found, please install the rsync package"
+       exit 1
+fi
+
+case "${0##*/}" in
+       update-to-autobuild.sh)
+               buildtype=autobuild
+               ;;
+       *)
+               buildtype=release
+               ;;
+esac
+
+options="-Prtzil --executability --delete-after --delete-excluded --stats"
+
+if [ -d "Xonotic-low" ]; then
+       url="rsync://beta.xonotic.org/$buildtype-Xonotic-low/"
+       target="Xonotic-low/"
+elif [ -d "Xonotic-high" ]; then
+       url="rsync://beta.xonotic.org/$buildtype-Xonotic-high/"
+       target="Xonotic-high/"
+elif [ -d "../../../.git" ]; then
+       echo >&2 "NOTE: this is a git repository download. Using the regular update method."
+       exec ../../../all update
+elif [ -d "../../../data" ]; then
+       if [ -f ../../../data/xonotic-rsync-data-low.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-low/"
+       elif [ -f ../../../data/xonotic-*-data-low.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-low/"
+               options="$options -y" # use fuzzy matching because file names differ
+       elif [ -f ../../../data/xonotic-rsync-data-high.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-high/"
+       elif [ -f ../../../data/xonotic-*-data-high.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic-high/"
+               options="$options -y" # use fuzzy matching because file names differ
+       elif [ -f ../../../data/xonotic-rsync-data.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic/"
+       elif [ -f ../../../data/xonotic-*-data.pk3 ]; then
+               url="rsync://beta.xonotic.org/$buildtype-Xonotic/"
+               options="$options -y" # use fuzzy matching because file names differ
+       else
+               echo >&2 "FATAL: unrecognized Xonotic build. This update script cannot be used."
+               exit 1
+       fi
+       target="../../.."
+else
+       url="rsync://beta.xonotic.org/$buildtype-Xonotic/"
+       target="Xonotic/"
+fi
+
+excludes=
+if [ -z "$XONOTIC_INCLUDE_ALL" ]; then
+       excludes="$excludes --exclude=/*.exe"
+       excludes="$excludes --exclude=/fteqcc/*.exe"
+       excludes="$excludes --exclude=/bin32"
+       excludes="$excludes --exclude=/*.dll"
+       excludes="$excludes --exclude=/bin64"
+
+       case `uname`:`uname -m` in
+               Darwin:*)
+                       excludes="$excludes --exclude=/xonotic-linux*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux*"
+                       ;;
+               Linux:x86_64)
+                       excludes="$excludes --exclude=/Xonotic*.app"
+                       excludes="$excludes --exclude=/xonotic-osx-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
+                       if [ -z "$XONOTIC_INCLUDE_32BIT" ]; then
+                               excludes="$excludes --exclude=/xonotic-linux32-*"
+                               excludes="$excludes --exclude=/fteqcc/fteqcc.linux32"
+                       fi
+                       ;;
+               Linux:i?86)
+                       excludes="$excludes --exclude=/Xonotic*.app"
+                       excludes="$excludes --exclude=/xonotic-osx-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
+                       excludes="$excludes --exclude=/xonotic-linux64-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux64"
+                       ;;
+               *)
+                       echo >&2 "WARNING: Could not detect architecture - downloading all architectures"
+                       ;;
+       esac
+fi
+
+rsync $options $excludes "$url" "$target"
diff --git a/misc/tools/rsync-updater/update-xonotic.bat b/misc/tools/rsync-updater/update-xonotic.bat
deleted file mode 100644 (file)
index 71aaee9..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-@echo off\r
-\r
-if "%1" == "did-copy" goto copied\r
-cd %~dp0\r
-rmdir /s /q %TEMP%\xonotic-rsync-updater\r
-mkdir %TEMP%\xonotic-rsync-updater\r
-for %%f in (*.exe *.dll *.bat) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
-%TEMP%\xonotic-rsync-updater\update-xonotic did-copy\r
-exit\r
-\r
-:copied\r
-set options=-Prtzil --executability --delete-after --delete-excluded --stats\r
-\r
-if exist Xonotic-low goto xonoticlow\r
-if exist Xonotic-high goto xonotichigh\r
-if exist ..\..\..\.git goto xonoticdatagit\r
-if exist ..\..\..\data goto xonoticdata\r
-goto xonotic\r
-:xonoticlow\r
-       set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/\r
-       set target=Xonotic-low/\r
-       goto endxonotic\r
-:xonotichigh\r
-       set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/\r
-       set target=Xonotic-high/\r
-       goto endxonotic\r
-:xonoticdatagit\r
-       echo NOTE: this is a git repository download. Using the regular update method.\r
-       ..\..\..\all update\r
-       goto end\r
-:xonoticdata\r
-       if exist ..\..\..\misc\tools\rsync-updater\rsync.exe goto xonoticdatarsync\r
-       echo FATAL: rsync not in misc\tools\rsync-updater. This update script cannot be used.\r
-       goto end\r
-:xonoticdatarsync\r
-       set PATH=misc\tools\rsync-updater;%PATH%\r
-       cd ..\..\..\r
-       if exist data\xonotic-rsync-data-low.pk3 goto xonoticdatalow\r
-       if exist data\xonotic-*-data-low.pk3 goto xonoticdatalowfuzzy\r
-       if exist data\xonotic-rsync-data-high.pk3 goto xonoticdatahigh\r
-       if exist data\xonotic-*-data-high.pk3 goto xonoticdatahighfuzzy\r
-       if exist data\xonotic-rsync-data.pk3 goto xonoticdatanormal\r
-       if exist data\xonotic-*-data.pk3 goto xonoticdatanormalfuzzy\r
-       echo FATAL: unrecognized Xonotic build. This update script cannot be used.\r
-       goto end\r
-:xonoticdatalow\r
-               set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/\r
-               goto endxonoticdata\r
-:xonoticdatalowfuzzy\r
-               set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/\r
-               set options=%options% -y\r
-               goto endxonoticdata\r
-:xonoticdatahigh\r
-               set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/\r
-               goto endxonoticdata\r
-:xonoticdatahighfuzzy\r
-               set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/\r
-               set options=%options% -y\r
-               goto endxonoticdata\r
-:xonoticdatanormal\r
-               set url=rsync://beta.xonotic.org/autobuild-Xonotic/\r
-               goto endxonoticdata\r
-:xonoticdatanormalfuzzy\r
-               set url=rsync://beta.xonotic.org/autobuild-Xonotic/\r
-               set options=%options% -y\r
-               goto endxonoticdata\r
-:endxonoticdata\r
-       set target=./\r
-       goto endxonotic\r
-:xonotic\r
-       set url=rsync://beta.xonotic.org/autobuild-Xonotic/\r
-       set target=Xonotic/\r
-       goto endxonotic\r
-:endxonotic\r
-\r
-set excludes=\r
-if not "%XONOTIC_INCLUDE_ALL%" == "" goto endbit\r
-set excludes=%excludes% --exclude=/xonotic-linux*\r
-set excludes=%excludes% --exclude=/xonotic-osx-*\r
-set excludes=%excludes% --exclude=/Xonotic*.app\r
-set excludes=%excludes% --exclude=/fteqcc/fteqcc.linux*\r
-set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx\r
-\r
-if "%ProgramFiles(x86)%" == "" goto bit32\r
-:bit64\r
-       if not "%XONOTIC_INCLUDE_32BIT%" == "" goto endbit\r
-       set excludes=%excludes% --exclude=/xonotic.exe\r
-       set excludes=%excludes% --exclude=/xonotic-sdl.exe\r
-       set excludes=%excludes% --exclude=/xonotic-dedicated.exe\r
-       set excludes=%excludes% --exclude=/fteqcc/fteqcc.exe\r
-       set excludes=%excludes% --exclude=/bin32\r
-       set excludes=%excludes% --exclude=/*.dll\r
-       goto endbit\r
-:bit32\r
-       set excludes=%excludes% --exclude=/xonotic-x64.exe\r
-       set excludes=%excludes% --exclude=/xonotic-x64-sdl.exe\r
-       set excludes=%excludes% --exclude=/xonotic-x64-dedicated.exe\r
-       set excludes=%excludes% --exclude=/fteqcc/fteqcc-x64.exe\r
-       set excludes=%excludes% --exclude=/bin64\r
-       goto endbit\r
-:endbit\r
-\r
-for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
-%TEMP%\xonotic-rsync-updater\rsync %options% %excludes% %url% %target%\r
-%TEMP%\xonotic-rsync-updater\chmod -R a+x %target%\r
-\r
-:end\r
-pause\r
-rmdir /s /q %TEMP%\xonotic-rsync-updater\r
diff --git a/misc/tools/rsync-updater/update-xonotic.sh b/misc/tools/rsync-updater/update-xonotic.sh
deleted file mode 100755 (executable)
index c0b9398..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-#!/bin/sh
-
-if [ -d "${0%/*}" ]; then
-       cd "${0%/*}"
-fi
-
-if ! which rsync >/dev/null; then
-       echo >&2 "FATAL: rsync not found, please install the rsync package"
-       exit 1
-fi
-
-options="-Prtzil --executability --delete-after --delete-excluded --stats"
-
-if [ -d "Xonotic-low" ]; then
-       url="rsync://beta.xonotic.org/autobuild-Xonotic-low/"
-       target="Xonotic-low/"
-elif [ -d "Xonotic-high" ]; then
-       url="rsync://beta.xonotic.org/autobuild-Xonotic-high/"
-       target="Xonotic-high/"
-elif [ -d "../../../.git" ]; then
-       echo >&2 "NOTE: this is a git repository download. Using the regular update method."
-       exec ../../../all update
-elif [ -d "../../../data" ]; then
-       if [ -f ../../../data/xonotic-rsync-data-low.pk3 ]; then
-               url="rsync://beta.xonotic.org/autobuild-Xonotic-low/"
-       elif [ -f ../../../data/xonotic-*-data-low.pk3 ]; then
-               url="rsync://beta.xonotic.org/autobuild-Xonotic-low/"
-               options="$options -y" # use fuzzy matching because file names differ
-       elif [ -f ../../../data/xonotic-rsync-data-high.pk3 ]; then
-               url="rsync://beta.xonotic.org/autobuild-Xonotic-high/"
-       elif [ -f ../../../data/xonotic-*-data-high.pk3 ]; then
-               url="rsync://beta.xonotic.org/autobuild-Xonotic-high/"
-               options="$options -y" # use fuzzy matching because file names differ
-       elif [ -f ../../../data/xonotic-rsync-data.pk3 ]; then
-               url="rsync://beta.xonotic.org/autobuild-Xonotic/"
-       elif [ -f ../../../data/xonotic-*-data.pk3 ]; then
-               url="rsync://beta.xonotic.org/autobuild-Xonotic/"
-               options="$options -y" # use fuzzy matching because file names differ
-       else
-               echo >&2 "FATAL: unrecognized Xonotic build. This update script cannot be used."
-               exit 1
-       fi
-       target="../../.."
-else
-       url="rsync://beta.xonotic.org/autobuild-Xonotic/"
-       target="Xonotic/"
-fi
-
-excludes=
-if [ -z "$XONOTIC_INCLUDE_ALL" ]; then
-       excludes="$excludes --exclude=/*.exe"
-       excludes="$excludes --exclude=/fteqcc/*.exe"
-       excludes="$excludes --exclude=/bin32"
-       excludes="$excludes --exclude=/*.dll"
-       excludes="$excludes --exclude=/bin64"
-
-       case `uname`:`uname -m` in
-               Darwin:*)
-                       excludes="$excludes --exclude=/xonotic-linux*"
-                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux*"
-                       ;;
-               Linux:x86_64)
-                       excludes="$excludes --exclude=/Xonotic*.app"
-                       excludes="$excludes --exclude=/xonotic-osx-*"
-                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
-                       if [ -z "$XONOTIC_INCLUDE_32BIT" ]; then
-                               excludes="$excludes --exclude=/xonotic-linux32-*"
-                               excludes="$excludes --exclude=/fteqcc/fteqcc.linux32"
-                       fi
-                       ;;
-               Linux:i?86)
-                       excludes="$excludes --exclude=/Xonotic*.app"
-                       excludes="$excludes --exclude=/xonotic-osx-*"
-                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
-                       excludes="$excludes --exclude=/xonotic-linux64-*"
-                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux64"
-                       ;;
-               *)
-                       echo >&2 "WARNING: Could not detect architecture - downloading all architectures"
-                       ;;
-       esac
-fi
-
-rsync $options $excludes "$url" "$target"
index ba99371ac14e7865896d86f3e89eba9cf69c029a..02e11b2fd006abd9f4c1938de6d11428a7b5c434 100755 (executable)
@@ -7,7 +7,7 @@ url_http=http://beta.xonotic.org/autobuild-bsp/
 url_ssh=xonotic-beta:autobuild-bsp/
 build_cachedir="$HOME/xonotic-map-compiler.cache/"
 screenshot_cachedir="$HOME/xonotic-map-screenshot.cache/"
-build_override="-bsp_timeout 1800 -vis_timeout 3600 -light_timeout 14400 -minimap_timeout 900 -scale_timeout 900"
+build_override="-bsp_timeout 5400 -vis_timeout 3600 -light_timeout 14400 -minimap_timeout 900 -scale_timeout 900"
 screenshot_override="9 900 5 +g_ctf 1"
 
 getthemap_fail=false
@@ -222,8 +222,8 @@ screenshotthemap()
                continue
        fi
 
-       rm -rf ~/.xonotic
-       mkdir -p ~/.xonotic
+       rm -rf ~/.xonotic/data
+       mkdir -p ~/.xonotic/data
        (
                cd ../..
                if [ -n "$DISPLAY" ]; then
@@ -238,25 +238,22 @@ screenshotthemap()
                                        ;;
                        esac
                fi
-       ) >~/.xonotic/autoscreenshot.log 2>&1
-       if ! mv ~/.xonotic/data/screenshots "$M-$blobhash"; then
-               if [ -n "$IRCSPAM" ]; then
-                       #ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 1 > "maps/$M.ircss"
-                       ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 1 > "maps/$M.ircss"
-               fi
-               return 1
-       fi
-       mv ~/.xonotic/autoscreenshot.log "$M-$blobhash"/ || true
-       if [ -n "$IRCSPAM" ]; then
-               #ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 0 > "maps/$M.ircss"
-               ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 0 > "maps/$M.ircss"
+       ) 2>&1 | tee ~/.xonotic/data/autoscreenshot.log
+       good=false
+       if mv ~/.xonotic/data/screenshots "$M-$blobhash"; then
+               ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss"
+       else
+               mkdir "$M-$blobhash"
+               ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss"
        fi
+       mv ~/.xonotic/data/"$M.ircss" "$M-$blobhash"/
+       mv ~/.xonotic/data/autoscreenshot.log "$M-$blobhash"/
        chmod 1777 "$M-$blobhash"
        ln -snf "../$M-$blobhash" "$M" # from ALL branches, so beware!
        rsync -vaSHP "$M-$blobhash" "$url_ssh"
        rsync -vaSHP "$M" "$url_ssh""latest/"
        if [ -n "$IRCSPAM" ]; then
-               $IRCSPAM < "maps/$M.ircss"
+               $IRCSPAM < "$M-$blobhash/$M.ircss"
        fi
 }
 
index e102f766973727cd8969e13dce44b59e4cffb7cf..867fd7dbbeba17f126b94ea63259ab41ad8391d2 100755 (executable)
@@ -13,8 +13,9 @@ count=`yes x | head -n "$count" | tr -cd x`
        +'locksession 0' \
        +'scr_screenshot_timestamp 0' \
        +'vid_fullscreen 0' \
-       +'exec effects-ultimate.cfg' \
+       +'exec effects-ultra.cfg' \
        "$@" \
+       +'sv_precacheplayermodels 0' \
        +'r_motionblur 0' \
        +'r_damageblur 0' \
        +'r_letterbox -1' \
index 7a5379913537e86401063a3daeb5286c827da8eb..aa0b947cfe07e3e1f80bafc4ce744b16322a8e46 100644 (file)
@@ -43,6 +43,7 @@ irc_channel = #Xonotic-Pwayers
 #dp_listen_from_server =
 #dp_status_delay = 30
 #dp_utf8_enable = 1
+#dp_timinglog = timing.log
 #irc_reconnect_delay = 300
 #irc_admin_timeout = 3600
 #irc_admin_quote_re =
index 8f7ba04957ac445201e173619c8a92d23b1835a5..49d424c3acb3058d41eac645de95fe2b956141c4 100755 (executable)
@@ -752,6 +752,7 @@ our %config = (
        dp_server_from_wan => "",
        dp_listen_from_server => "", 
        dp_utf8_enable => $color_utf8_enable,
+       dp_timinglog => "",
        irc_local => "",
 
        irc_admin_password => "",
@@ -1728,6 +1729,15 @@ sub cond($)
                my ($all, $cpu, $lost, $avg, $max, $sdev) = @_;
                return 0 # don't complain when just on the voting screen
                        if !$store{playing};
+               if(length $config{dp_timinglog})
+               {
+                       open my $fh, '>>', $config{dp_timinglog}
+                               or warn "open >> $config{dp_timinglog}: $!";
+                       print $fh "@{[time]} $cpu $lost $avg $max $sdev $store{slots_active}\n"
+                               or warn "print >> $config{dp_timinglog}: $!";
+                       close $fh
+                               or warn "close >> $config{dp_timinglog}: $!";
+               }
                return 0 # don't complain if it was less than 0.5%
                        if $lost < 0.5;
                return 0 # don't complain if nobody is looking