summaryrefslogtreecommitdiff
path: root/groff2pdf_entr.sh
blob: 726db293d73672587e167e71af50abb64e9a178f (plain)
1
2
3
4
5
6
7
#!/bin/sh
test -z "$1" && printf "Pass at least one file\n" && exit 1
file_in=$(realpath "$1")
file_out="/tmp/output.pdf"
printf "Watching file %s\nOutput is %s\n" $file_in $file_out
compile_command='groff -R -man -ms -e -p -t -Tpdf '"$file_in"' > '"$file_out"
ls $file_in|entr -s "$compile_command"