You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p gnumake inotify-tools pandoc php
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
make
|
|
make start
|
|
trap "make stop;" EXIT
|
|
|
|
inotifywait -qrm -e modify -e create -e move -e delete --format '%w%f' $PWD | grep --line-buffered -v 'public\|.swp$\|~$' | (
|
|
while true
|
|
do
|
|
timeout 1 cat /dev/stdin | sort -u
|
|
done | \
|
|
while read l
|
|
do
|
|
echo files changed: $l
|
|
make
|
|
done
|
|
)
|