From eb6b533557447ea830d7cfcb0f28b6f2a2300c21 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 13 Jun 2008 11:49:01 +0200 Subject: [PATCH] build: fix restart targets Signed-off-by: Julien Danjou --- Makefile.am | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4e9bfc8f8..9c7fa09ec 100644 --- a/Makefile.am +++ b/Makefile.am @@ -264,11 +264,10 @@ endif # Presuming we are running awesome on this screen, and this is screen 0, ... # ...we replace the running awesome instance by a freshly compiled one. restart-uninstalled: awesome awesome-client - screen=`echo "$${DISPLAY}" | sed 's/.*:[0-9]\.\([0-9]*\)$$/\1/; s/.*:\([0-9]*\)$$/0/'`; \ - echo "$${screen}" exec "$${PWD}/awesome" | "$${PWD}/awesome-client" + echo "awesome.restart()" | "$${PWD}/awesome-client" # ...we replace the running awesome instance by the last installed one. restart-installed: screen=`echo "$${DISPLAY}" | sed 's/.*:[0-9]\.\([0-9]*\)$$/\1/; s/.*:\([0-9]*\)$$/0/'`; \ - echo "$${screen}" exec "$(DESTDIR)$(bindir)/awesome" | "$(DESTDIR)$(bindir)/awesome-client" + echo "awesome.restart()" | "$(DESTDIR)$(bindir)/awesome-client"