build: fix restart targets

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-13 11:49:01 +02:00
parent 4b3ded4d61
commit eb6b533557
1 changed files with 2 additions and 3 deletions

View File

@ -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"