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

13 lines
210 B
Bash
Raw Normal View History

2024-12-05 21:10:22 +00:00
#!/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 /_