dots-of-war/files/scripts/autocompile/plantuml.sh
2020-04-18 20:27:12 +02:00

12 lines
210 B
Bash
Executable file

#!/bin/bash
pngfile="${1//.plantuml/.png}"
function finish {
rm "$pngfile"
}
trap finish EXIT
plantuml -tpng "$1"
feh --auto-zoom --auto-reload --fullscreen "$pngfile" &
echo "$1" | entr plantuml -tpng /_