forked from Telodendria/Telodendria
Be smart about the type of man page we generate.
This commit is contained in:
parent
c78dc3bd31
commit
b05e81776a
1 changed files with 11 additions and 3 deletions
|
@ -25,10 +25,18 @@ fi
|
|||
echo ".Sh NAME"
|
||||
echo ".Nm ${man}"
|
||||
echo ".Nd {SET DESCRIPTION HERE}"
|
||||
echo ".Sh SYNOPSIS"
|
||||
echo ".In ${man}.h"
|
||||
|
||||
if [ "$section" = "3" ]; then
|
||||
echo ".Sh SYNOPSIS"
|
||||
echo ".In ${man}.h"
|
||||
fi
|
||||
|
||||
echo ".Sh DESCRIPTION"
|
||||
echo ".Sh RETURN VALUES"
|
||||
|
||||
if [ "$section" = "3" ]; then
|
||||
echo ".Sh RETURN VALUES"
|
||||
fi
|
||||
|
||||
echo ".Sh SEE ALSO"
|
||||
) > "$file"
|
||||
|
||||
|
|
Loading…
Reference in a new issue