From: Matthias Krüger Date: Thu, 17 Dec 2015 18:58:25 +0000 (+0100) Subject: xonotic.subr: automatically compress demos after terminating the game. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmatthiaskrgr%2Fauto_compress_demos;p=xonotic%2Fxonotic.git xonotic.subr: automatically compress demos after terminating the game. --- diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 6f66d62e..20cc9b0e 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -348,6 +348,10 @@ case "$cmd" in fi exit 1 fi + echo "compressing" + cd ~/.xonotic/data/demos/ +# pwd + tar --remove-files -cf - `find ~/.xonotic/data/demos/ -type f | grep "\.dem$"` | xz -9 -c - > "games_`date +%Y_%m_%d__%H:%M:%S`.tar.xz" ; ;; help) $ECHO " $SELF compile [-c] [-qc] [-r|-p] [-0] [sdl|glx|wgl|dedicated]"