From a1552924484530b2e4678cb290c54ba5a48da08d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 17 Dec 2015 19:58:25 +0100 Subject: [PATCH] xonotic.subr: automatically compress demos after terminating the game. --- misc/tools/all/xonotic.subr | 4 ++++ 1 file changed, 4 insertions(+) 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]" -- 2.39.2