Mercurial > hg > beaglert
changeset 440:7a074e238db3 prerelease
Makefile: IDE runs in a loop
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 18 Jun 2016 21:23:15 +0100 |
parents | e49ae69acbe8 |
children | b596c72f0382 |
files | Makefile |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sat Jun 18 04:19:17 2016 +0100 +++ b/Makefile Sat Jun 18 21:23:15 2016 +0100 @@ -57,7 +57,7 @@ BELA_IDE_HOME?=/root/Bela/IDE # A bug in this version of screen forces us to use two screen names which beginning substrings do not match (Bela, Bela-IDE would cause problems) BELA_IDE_SCREEN_NAME?=IDE-Bela -BELA_IDE_RUN_COMMAND?=cd $(BELA_IDE_HOME) && screen -S $(BELA_IDE_SCREEN_NAME) -d -m /usr/local/bin/node index.js +BELA_IDE_RUN_COMMAND?=cd $(BELA_IDE_HOME) && screen -S $(BELA_IDE_SCREEN_NAME) -d -m bash -c "while true; do /usr/local/bin/node index.js; sleep 0.5; done" BELA_IDE_STOP_COMMAND?=screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null ifneq (,$(filter $(QUIET_TARGETS),$(MAKECMDGOALS))) @@ -291,7 +291,7 @@ @screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null; exit 0; @printf "done\n" -BELA_IDE_STARTUP_COMMAND=printf "\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running the Bela IDE...\n$(BELA_IDE_RUN_COMMAND)\n" > $(BELA_IDE_STARTUP_SCRIPT) +BELA_IDE_STARTUP_COMMAND=printf '\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running the Bela IDE...\n$(BELA_IDE_RUN_COMMAND)\n' > $(BELA_IDE_STARTUP_SCRIPT) idestartup: ## Enables the IDE at startup @echo "Enabling the IDE at startup"