groff fix
This commit is contained in:
parent
fbe1e5ded8
commit
b069f17e9c
2 changed files with 17 additions and 7 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -183,3 +183,8 @@ kinfocenterrc
|
||||||
specialmailcollectionsrc
|
specialmailcollectionsrc
|
||||||
xdg-desktop-portal-kderc
|
xdg-desktop-portal-kderc
|
||||||
gtk-3.0/
|
gtk-3.0/
|
||||||
|
defaultcalendarrc
|
||||||
|
eventviewsrc
|
||||||
|
klipperrc
|
||||||
|
korganizerrc
|
||||||
|
partitionmanagerrc
|
||||||
|
|
|
@ -27,16 +27,21 @@ FILE="$1"
|
||||||
OUT="${FILE%%.ms}.pdf"
|
OUT="${FILE%%.ms}.pdf"
|
||||||
[ "$FILE" = "clean" ] && MODE="clean"
|
[ "$FILE" = "clean" ] && MODE="clean"
|
||||||
|
|
||||||
[ -e "/usr/local/bin/soelim" ] &&
|
[ -e "/usr/bin/soelim" ] && SOELIM="/usr/bin/soelim"
|
||||||
SOELIM="/usr/local/bin/soelim" || SOELIM="/usr/bin/soelim"
|
[ -e "/usr/local/bin/soelim" ] && SOELIM="/usr/local/bin/soelim"
|
||||||
[ -e "/usr/local/bin/refer" ] &&
|
[ -z "$SOELIM" ] && SOELIM="soelim"
|
||||||
REFER="/usr/local/bin/refer" || REFER="/usr/bin/refer"
|
|
||||||
[ -e "/usr/local/bin/groff" ] &&
|
[ -e "/usr/bin/refer" ] && REFER="/usr/bin/refer"
|
||||||
GROFF="/usr/local/bin/groff" || GROFF="/usr/bin/groff"
|
[ -e "/usr/local/bin/refer" ] && REFER="/usr/local/bin/refer"
|
||||||
|
[ -z "$REFER" ] && REFER="refer"
|
||||||
|
|
||||||
|
[ -e "/usr/bin/groff" ] && GROFF="/usr/bin/groff"
|
||||||
|
[ -e "/usr/local/bin/groff" ] && GROFF="/usr/local/bin/groff"
|
||||||
|
[ -z "$GROFF" ] && GROFF="groff"
|
||||||
|
|
||||||
BIB="$HOME/Documents/bibliography" # Bibliography file
|
BIB="$HOME/Documents/bibliography" # Bibliography file
|
||||||
MAC="$HOME/.config/groff/" # Macros dir
|
MAC="$HOME/.config/groff/" # Macros dir
|
||||||
PRE="-ketpG" # Preprocessors
|
PRE="-ketp" # Preprocessors
|
||||||
|
|
||||||
# Takes a line with .IMG command, converts given image
|
# Takes a line with .IMG command, converts given image
|
||||||
# to pdf format and inserts properly formatted .PDFPIC
|
# to pdf format and inserts properly formatted .PDFPIC
|
||||||
|
|
Loading…
Reference in a new issue