aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2017-02-22 18:46:19 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2017-02-22 18:46:19 +0100
commit733e01264f42853d8b6bec634b7566dfc6a35ee3 (patch)
treec85b09b342a789b282e60e3398ffbd81178ab507 /doc
parent4db37203c0910aabc7d5d99908cc03084c1a29d2 (diff)
downloadsciteco-733e01264f42853d8b6bec634b7566dfc6a35ee3.tar.gz
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/sciteco.tmac14
1 files changed, 14 insertions, 0 deletions
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