User:Timothee Flutre/Notebook/Postdoc/2011/11/10

From OpenWetWare

Jump to: navigation, search
Project name Main project page
Previous entry      Next entry

Entry title

  • generate a man page from the "--help" and "--version" options of a custom program using help2man and groff:
gcc -Wall -o myprogram myprogram.c
help2man -o myprogram.man ./myprogram
man ./myprogram.man
groff -mandoc myprogram.man > myprogram.ps
ps2pdf myprogram.ps myprogram.pdf


Personal tools