From 6a593751e52063463683b5d9cd6456993ebaca3b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 15 Oct 2022 14:28:17 +0200 Subject: Properly update mdoc.local --- Makefile | 7 ++++--- 1 file 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 -- cgit v1.2.3