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.

docs-watch.sh 289B

5 년 전
12345678910111213141516
  1. set -eu
  2. THIS_SCRIPT=$(readlink -m $0)
  3. HERE=$(dirname ${THIS_SCRIPT})
  4. ROOT=$(dirname ${HERE})
  5. while true; do
  6. echo "Watching for changes..."
  7. inotifywait -r ${ROOT}/docs/ -q \
  8. -e modify \
  9. -e close_write \
  10. -e move \
  11. -e delete \
  12. -e create
  13. make docs || :
  14. done