-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition of a man-page #559
Conversation
It is currently just an alphabetical list of LibTomMath's functions with the obligatory man-page boilerplates. |
How did you generate this? (Please don't say by hand 😂) |
How can I answer that question if you forbid me to tell you? ;-) But serious: grep'd the functions, formatted them with a bit of sed and tr and c&p'ed a lot of text from bn.tex. |
Seems as if I am innocent this time:
|
Digged through my shell history: grep -E "^mp_err" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
grep -E "^void" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
grep -E "^int" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
grep -E "^uint" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
grep -E "^long" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
grep -E "^bool" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
grep -E "^size_t" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
grep -E "define mp" doc/bn.tex | sed -e 's/ /\\ /g;s/^/.LP /' >> ~/DIV_C_FILES/ltm_functions
...
sort -u ~/DIV_C_FILES/ltm_functions | > ~/DIV_C_FILES/ltm_functions_uniq
...
sort -k 3 ~/DIV_C_FILES/ltm_functions.troff > ~/DIV_C_FILES/ltm_functions.troff_bis
mv -v ~/DIV_C_FILES/ltm_functions.troff_bis ~/DIV_C_FILES/ltm_functions.troff The rest was done in the editor, so no "automagic" latex2troff here, sorry. There is |
Can you please cross check what I added? |
I also tried it out, but couldn't get it working... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we maybe also install the manpages from the regular makefiles?
Signed-off-by: Steffen Jaeckel <[email protected]>
Signed-off-by: Steffen Jaeckel <[email protected]>
Signed-off-by: Steffen Jaeckel <[email protected]>
You added a check in
Yes. We have it, we What about the two random examples at the end? We have a couple in Nah, not today, the odd problems with the timing over at #499 are enough for now. |
Signed-off-by: Steffen Jaeckel <[email protected]>
I've fixed them (at least to compile w/o warnings), will push it after I've merged this PR. |
Oh, you are way too fast! Couldn't get even a start point with the radix conversion problem, so I grabbed the low hanging fruits first and repaired the files in Sorry. |
A Troff formatted man-page.