dots-of-war/files/scripts/autocompile/plantuml.sh

13 lines
210 B
Bash
Raw Normal View History

2020-03-29 17:39:21 +00:00
#!/bin/bash
2020-04-18 18:27:12 +00:00
pngfile="${1//.plantuml/.png}"
2020-03-29 17:39:21 +00:00
function finish {
rm "$pngfile"
}
trap finish EXIT
plantuml -tpng "$1"
feh --auto-zoom --auto-reload --fullscreen "$pngfile" &
echo "$1" | entr plantuml -tpng /_