From 2b834b54fbe4bac76c2cc0d35896d34fd46df8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 11 Jun 2015 06:29:47 +0200 Subject: [PATCH 1/2] enable debug start scripts --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 268396892b..7f4a774036 100644 --- a/Makefile +++ b/Makefile @@ -392,7 +392,11 @@ install-linux-appdata: install-linux-scripts: @echo "#!/bin/sh" > openra @echo 'cd "$(gameinstalldir)"' >> openra +ifeq ($(DEBUG), $(filter $(DEBUG),false no n off 0)) @echo 'mono OpenRA.Game.exe "$$@"' >> openra +else + @echo 'mono --debug OpenRA.Game.exe "$$@"' >> openra +endif @echo 'if [ $$? != 0 -a $$? != 1 ]' >> openra @echo 'then' >> openra @echo 'ZENITY=`which zenity` || echo "OpenRA needs zenity installed to display a graphical error dialog. See ~/.openra. for log files."' >> openra From 41215fe0212a523400c06c82b367f427662dd5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 11 Jun 2015 06:29:57 +0200 Subject: [PATCH 2/2] document the new DEBUG option --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7f4a774036..b1ec5246e8 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ ############################# INSTRUCTIONS ############################# # # to compile, run: -# make +# make [DEBUG=false] # # to compile with development tools, run: -# make all +# make all [DEBUG=false] # # to check the official mods for erroneous yaml files, run: # make test @@ -22,7 +22,7 @@ # make [prefix=/foo] [bindir=/bar/bin] install-all # # to install Linux startup scripts, desktop files and icons: -# make install-linux-shortcuts +# make install-linux-shortcuts [DEBUG=false] # # to uninstall, run: # make uninstall @@ -422,10 +422,10 @@ uninstall: help: @echo to compile, run: - @echo \ \ make + @echo \ \ make [DEBUG=false] @echo @echo to compile with development tools, run: - @echo \ \ make all + @echo \ \ make all [DEBUG=false] @echo @echo to check the official mods for erroneous yaml files, run: @echo \ \ make test @@ -440,7 +440,7 @@ help: @echo \ \ make \[prefix=/foo\] \[bindir=/bar/bin\] install-all @echo @echo to install Linux startup scripts, desktop files and icons - @echo \ \ make install-linux-shortcuts + @echo \ \ make install-linux-shortcuts [DEBUG=false] @echo @echo to uninstall, run: @echo \ \ make uninstall