mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
149594f974
darcs-hash:20050920132639-ac50b-fa3b476891e1f5f67207cf4cc7bf623834cc5edc.gz
13 lines
394 B
Bash
Executable File
13 lines
394 B
Bash
Executable File
#!/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
|
|
|