dots-of-war/files/scripts/autocompile/plantuml.sh
2020-03-29 19:39:21 +02:00

12 lines
229 B
Bash
Executable file

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