Be smart about the type of man page we generate.

This commit is contained in:
Jordan Bancino 2023-02-16 17:22:32 +00:00
parent c78dc3bd31
commit b05e81776a

View file

@ -25,10 +25,18 @@ fi
echo ".Sh NAME"
echo ".Nm ${man}"
echo ".Nd {SET DESCRIPTION HERE}"
if [ "$section" = "3" ]; then
echo ".Sh SYNOPSIS"
echo ".In ${man}.h"
fi
echo ".Sh DESCRIPTION"
if [ "$section" = "3" ]; then
echo ".Sh RETURN VALUES"
fi
echo ".Sh SEE ALSO"
) > "$file"