diff options
author | Thomas Voss <mail@thomasvoss.com> | 2022-10-15 14:28:17 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2022-10-15 14:28:17 +0200 |
commit | 6a593751e52063463683b5d9cd6456993ebaca3b (patch) | |
tree | 62c64ca368a6f370640116af76d827dacb28a682 | |
parent | 1edad44252f54b58f7a8be9a0b59b35222fb0e8c (diff) |
Properly update mdoc.local
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |