diff --git a/scripts/sync_ticket_routemap.sh b/scripts/sync_ticket_routemap.sh deleted file mode 100644 index daf63ec..0000000 --- a/scripts/sync_ticket_routemap.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -set -ex - -tmpdir=`ttpage ./demo/ticket/routemap.toml` - -cp "$tmpdir/page/ticket/routemap.toml" ./demo/ticket/routemap.toml -cp "$tmpdir/page/ticket/handlers.go" ./demo/ticket/handlers.go -rsync -r "$tmpdir/page/ticket/templates/" ./demo/ticket/templates/ -go generate ./demo/ticket \ No newline at end of file diff --git a/scripts/watch_examples.sh b/scripts/watch_examples.sh deleted file mode 100755 index 3247f81..0000000 --- a/scripts/watch_examples.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# NOTE: To make this work on Mac I installed: -# `brew instal fswatch` and -# `brew instal util-linux` for the process session ID control. - -sigint_handler() -{ - kill -- -$PID - exit -} - -trap sigint_handler 0 - -while true; do - set -x - setsid go run ./demo & - PID=$! - fswatch -1 `find ./demo -name '*.go' -print` - # the negative PID is necessary to kill subprocesses - # see https://unix.stackexchange.com/questions/124127/kill-all-descendant-processes - kill -- -$PID - # some throttling is good to allow potentilly multiple files be edited - sleep 5 -done \ No newline at end of file