diff options
| author | Robert Günzler <r@gnzler.io> | 2021-11-08 02:55:30 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-11-08 02:55:30 +0100 |
| commit | bf65d36191d83ab7dfcd109e427f93e7c147da73 (patch) | |
| tree | 43d9d0c3f61a616f576c48e8242e228ddcc7a2d1 /bin/latexmk | |
| parent | 28e754e2efa3cf50b8c03bb49e02127e56948dd8 (diff) | |
bin/latexmk: watch for all file changes
Diffstat (limited to '')
| -rwxr-xr-x | bin/latexmk | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/bin/latexmk b/bin/latexmk index 966e058..407d348 100755 --- a/bin/latexmk +++ b/bin/latexmk @@ -13,17 +13,17 @@ reexec= nocolor= while getopts 1Rnh opt; do case "$opt" in - 1) once=1 ;; - R) reexec=1 ;; - n) nocolor=1 ;; - h | ?) - printf "usage: %s [-h]\n" "$(basename "$0")" - printf "\n" - printf " -1 \t only run once\n" - printf " -n \t no color\n" - printf "\n" - exit 2 - ;; + 1) once=1 ;; + R) reexec=1 ;; + n) nocolor=1 ;; + h | ?) + printf "usage: %s [-h]\n" "$(basename "$0")" + printf "\n" + printf " -1 \t only run once\n" + printf " -n \t no color\n" + printf "\n" + exit 2 + ;; esac done shift $((OPTIND - 1)) @@ -78,8 +78,8 @@ if [ -z "${once}" ]; then fi if [ -z "$1" ]; then - ls ./*.tex + ls ./*.{tex,cls,jpg,png,svg} else [ -f "$1" ] && printf "%s\n" "$1" - ls ./*.tex + ls ./*.{tex,cls,jpg,png,svg} fi | entr ${entr_args} -ns 'latexmk -R $0' |