From 733e01264f42853d8b6bec634b7566dfc6a35ee3 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 22 Feb 2017 18:46:19 +0100 Subject: fixed womanpage-generation for Groff < v1.20 * we had an undocumented dependency on Groff v1.20, since this version introduced the .device request. * this broke the womanpage generation e.g. on OS X 10.6. Even newer versions of OS X only appear to ship Groff v1.19. * Since it makes sense to support the Groff shipping with OS X, we work around this issue by reimplementing .device on platforms that lack it. * The fallback implementation still has subtle differences to the real .device, but they are acceptable for the time being. --- doc/sciteco.tmac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/sciteco.tmac b/doc/sciteco.tmac index 7613c6e..7b0af1c 100644 --- a/doc/sciteco.tmac +++ b/doc/sciteco.tmac @@ -5,6 +5,20 @@ .nroff .do mso tty.tmac . +.\" Groff only supports .device as of v1.20, while +.\" much older versions are sometimes in use (especially +.\" on OS X). +.\" This is as close as I could get in reproducing it, +.\" but there are still subtle differences... +.if !ddevice \{\ +.de device +. if \\n(.z \ +. nop \!\!x X \\^$ +. el \ +. nop \!x X \\^$ +.. +.\} +. .\" .\" Define topics at the current document position. .\" This is handled by grosciteco to create a topic index -- cgit v1.2.3