Skip to content

Commit a2cecef

Browse files
committed
move to tools/, trap more signals, remove gnu-specific flag
1 parent c4fa370 commit a2cecef

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ lint-backend: golangci-lint revive vet
317317

318318
.PHONY: watch
319319
watch:
320-
bash build/watch.sh
320+
bash tools/watch.sh
321321

322322
.PHONY: watch-frontend
323323
watch-frontend: node-check $(FOMANTIC_DEST) node_modules

build/watch.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

tools/watch.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
trap "kill 0" SIGINT SIGTERM SIGQUIT
4+
5+
make watch-frontend &
6+
PIDS+="$! ";
7+
make watch-backend &
8+
PIDS+="$!";
9+
10+
trap "kill ${PIDS[*]}" SIGINT SIGTERM SIGQUIT
11+
wait $PIDS

0 commit comments

Comments
 (0)