aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-10-15 14:28:17 +0200
committerThomas Voss <mail@thomasvoss.com> 2022-10-15 14:28:17 +0200
commit6a593751e52063463683b5d9cd6456993ebaca3b (patch)
tree62c64ca368a6f370640116af76d827dacb28a682
parent1edad44252f54b58f7a8be9a0b59b35222fb0e8c (diff)
Properly update mdoc.local
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fe1216b..a193c6e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ PREFIX = /usr
DPREFIX = ${DESTDIR}${PREFIX}
MANDIR = ${DPREFIX}/share/man
+GFILE = /usr/share/groff/site-tmac/mdoc.local
+
all:
@echo 'run `tup` to build the library' >&2
@@ -13,9 +15,8 @@ install:
cp src/lux.h ${DPREFIX}/include
cp man/*.0 ${MANDIR}/man0
cp man/*.3 ${MANDIR}/man3
- file=/usr/share/groff/site-tmac/mdoc.local; \
- grep '^\.ds doc-str-Lb-liblux' $$file > /dev/null || \
- cat man/Lb-desc.tmac >> $$file
+ sed -i '/^\.ds doc-str-Lb-liblux/d' ${GFILE}
+ grep -v '^\.\\"' man/Lb-desc.tmac >> ${GFILE}
clean:
rm -rf .tup/ src/*.[ao] src/*.so