98b4adfee4
* Unbreak groff manuals by using tbl(1); reported by pascal@. * Deal with our Mdocdate cvs keyword; as designed by jmc@ in 2007. * Use troffrc for OpenBSD config changes; suggested by Werner Lemberg. * Unbreak the hdtbl examples; from upstream. * Volume names in man(7) page headers; suggested by Yuri Pankov. * Update various string tables; coordinated with upstream. * Add a README explaining local changes; using feedback from pascal@. * Better description and bump. ok pascal@, and tested in an i386 bulk build by naddy@, thanks!
61 lines
2.3 KiB
Plaintext
61 lines
2.3 KiB
Plaintext
$OpenBSD: patch-Makefile_comm,v 1.2 2011/12/04 15:41:26 schwarze Exp $
|
|
# Install preformatted manuals
|
|
# since mandoc(1) does not format the groff manuals well.
|
|
# But install groff_mdoc(7) as source
|
|
# because mandoc(1) handles that one better than groff.
|
|
--- Makefile.comm.orig Fri Dec 31 08:33:08 2010
|
|
+++ Makefile.comm Fri Oct 21 22:19:48 2011
|
|
@@ -176,27 +176,44 @@ install_man:
|
|
-test -d $(DESTDIR)$(man1dir) || $(mkinstalldirs) $(DESTDIR)$(man1dir)
|
|
@-pages="$(MAN1)"; \
|
|
for p in $$pages; do \
|
|
- prog=`basename $$p .n`; \
|
|
- target=$(DESTDIR)$(man1dir)/$(NAMEPREFIX)$$prog.$(man1ext); \
|
|
+ p0="$${p%.n}.0"; \
|
|
+ echo "groff -t -mandoc -Tascii -P -c $$p > $$p0"; \
|
|
+ $(top_srcdir)/test-groff -t -mandoc -Tascii -P -c $$p > $$p0; \
|
|
+ target=$(DESTDIR)$(man1dir)/$(NAMEPREFIX)$$p0; \
|
|
rm -f $$target; \
|
|
- echo $(INSTALL_DATA) $$p $$target; \
|
|
- $(INSTALL_DATA) $$p $$target; \
|
|
+ echo $(INSTALL_DATA) $$p0 $$target; \
|
|
+ $(INSTALL_DATA) $$p0 $$target; \
|
|
done
|
|
-test -d $(DESTDIR)$(man5dir) || $(mkinstalldirs) $(DESTDIR)$(man5dir)
|
|
@-pages="$(MAN5)"; \
|
|
for p in $$pages; do \
|
|
- target=$(DESTDIR)$(man5dir)/`basename $$p .n`.$(man5ext); \
|
|
+ p0="$${p%.n}.0"; \
|
|
+ echo "groff -t -mandoc -Tascii -P -c $$p > $$p0"; \
|
|
+ $(top_srcdir)/test-groff -t -mandoc -Tascii -P -c $$p > $$p0; \
|
|
+ target=$(DESTDIR)$(man5dir)/$$p0; \
|
|
rm -f $$target; \
|
|
- echo $(INSTALL_DATA) $$p $$target; \
|
|
- $(INSTALL_DATA) $$p $$target; \
|
|
+ echo $(INSTALL_DATA) $$p0 $$target; \
|
|
+ $(INSTALL_DATA) $$p0 $$target; \
|
|
done
|
|
-test -d $(DESTDIR)$(man7dir) || $(mkinstalldirs) $(DESTDIR)$(man7dir)
|
|
@-pages="$(MAN7)"; \
|
|
for p in $$pages; do \
|
|
- target=$(DESTDIR)$(man7dir)/`basename $$p .n`.$(man7ext); \
|
|
+ if [ "X$$p" = "Xgroff_mdoc.n" ]; then \
|
|
+ mdocdir=$(DESTDIR)$(manroot)/man$(man7ext); \
|
|
+ test -d $$mdocdir || $(mkinstalldirs) $$mdocdir; \
|
|
+ target=$$mdocdir/groff_mdoc.7; \
|
|
rm -f $$target; \
|
|
echo $(INSTALL_DATA) $$p $$target; \
|
|
$(INSTALL_DATA) $$p $$target; \
|
|
+ else \
|
|
+ p0="$${p%.n}.0"; \
|
|
+ echo "groff -t -mandoc -Tascii -P -c $$p > $$p0"; \
|
|
+ $(top_srcdir)/test-groff -t -mandoc -Tascii -P -c $$p > $$p0; \
|
|
+ target=$(DESTDIR)$(man7dir)/$$p0; \
|
|
+ rm -f $$target; \
|
|
+ echo $(INSTALL_DATA) $$p0 $$target; \
|
|
+ $(INSTALL_DATA) $$p0 $$target; \
|
|
+ fi; \
|
|
done
|
|
|
|
.PHONY: uninstall_man
|