From e1535c74cc494dce85ea5c2e8a25665bed444217 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 5 Sep 2020 02:55:06 +0200 Subject: Add 'make watch' (#12636) * Add 'make watch' This combines frontend and backend watch into a single command that runs them in parallel on on SIGINT terminates both. Termination is not super-clean but I guess it does not have to. * move to tools/, trap more signals, remove gnu-specific flag * simplify Co-authored-by: techknowlogick --- tools/watch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/watch.sh (limited to 'tools/watch.sh') diff --git a/tools/watch.sh b/tools/watch.sh new file mode 100644 index 0000000000..61e3dc40a2 --- /dev/null +++ b/tools/watch.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -euo pipefail + +make watch-frontend & +make watch-backend & + +trap 'kill $(jobs -p)' EXIT +wait -- cgit v1.2.3