diff options
author | 2005-09-20 23:26:39 +1000 | |
---|---|---|
committer | 2005-09-20 23:26:39 +1000 | |
commit | 149594f974350bb364a76c73b91b1d5ffddaa1fa (patch) | |
tree | 95650e9982d5fabe4bd805d94c5d700cbbc1ca7f /gen_hdr.sh |
Initial revision
darcs-hash:20050920132639-ac50b-fa3b476891e1f5f67207cf4cc7bf623834cc5edc.gz
Diffstat (limited to 'gen_hdr.sh')
-rwxr-xr-x | gen_hdr.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gen_hdr.sh b/gen_hdr.sh new file mode 100755 index 00000000..7bf01312 --- /dev/null +++ b/gen_hdr.sh @@ -0,0 +1,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 + |