summary refs log tree commit diff
path: root/bin/latexmk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/latexmk')
-rwxr-xr-xbin/latexmk26
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'