From b069f17e9cb2c2724d0ab92f29838a6864123e59 Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Wed, 3 Jan 2024 12:01:38 -0600 Subject: [PATCH] groff fix --- .gitignore | 5 +++++ scripts/groffc | 19 ++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 93eb3f0..e925240 100644 --- a/.gitignore +++ b/.gitignore @@ -183,3 +183,8 @@ kinfocenterrc specialmailcollectionsrc xdg-desktop-portal-kderc gtk-3.0/ +defaultcalendarrc +eventviewsrc +klipperrc +korganizerrc +partitionmanagerrc diff --git a/scripts/groffc b/scripts/groffc index 3782c9d..e9fb993 100755 --- a/scripts/groffc +++ b/scripts/groffc @@ -27,16 +27,21 @@ FILE="$1" OUT="${FILE%%.ms}.pdf" [ "$FILE" = "clean" ] && MODE="clean" -[ -e "/usr/local/bin/soelim" ] && - SOELIM="/usr/local/bin/soelim" || SOELIM="/usr/bin/soelim" -[ -e "/usr/local/bin/refer" ] && - REFER="/usr/local/bin/refer" || REFER="/usr/bin/refer" -[ -e "/usr/local/bin/groff" ] && - GROFF="/usr/local/bin/groff" || GROFF="/usr/bin/groff" +[ -e "/usr/bin/soelim" ] && SOELIM="/usr/bin/soelim" +[ -e "/usr/local/bin/soelim" ] && SOELIM="/usr/local/bin/soelim" +[ -z "$SOELIM" ] && SOELIM="soelim" + +[ -e "/usr/bin/refer" ] && REFER="/usr/bin/refer" +[ -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 MAC="$HOME/.config/groff/" # Macros dir -PRE="-ketpG" # Preprocessors +PRE="-ketp" # Preprocessors # Takes a line with .IMG command, converts given image # to pdf format and inserts properly formatted .PDFPIC