[go: up one dir, main page]

File: gen_hdr.sh

package info (click to toggle)
fish 1.22.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,408 kB
  • ctags: 2,347
  • sloc: ansic: 35,286; sh: 3,022; makefile: 554
file content (12 lines) | stat: -rwxr-xr-x 393 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# This little script calls the man command to render a manual page and
# pipes the result into the gen_hdr2 program to convert the output
# into a C string literal. 

# NAME is the name of the function we are generating documentation for.
NAME=`basename $1 .doxygen`

# Render the page
nroff -man doc_src/builtin_doc/man/man1/${NAME}.1 | col -b | cat -s | sed -e '$d' | ./gen_hdr2