File: prepdoc

package info (click to toggle)
lx-gdb 1.03-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 88 kB
  • ctags: 102
  • sloc: ansic: 1,057; makefile: 58; sh: 5
file content (17 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Produces documentation for gdbload/gdbdump. Works on Solaris 2.3.

# Calls nroff with an almost suitable device parameter (the best I can find)
# and then # postprocesses the result to remove the Bold/Italic escape
# sequences and the \n characters (which are inserted only sometimes).
#
# Additionally, percent signs are changed into backslashes, as the
# nroff I use can't be persuaded into accepting backslashes in macro
# parameters.

nroff -man -TX $1 | sed 's/.//g
s/
//g
s/%/\\/g
'