X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/626751068b6d002183046f3e3e76eb3b9040fa6b..dd7a38147179a59bff9dffd824b265862aa1a59e:/mdwn2man diff --git a/mdwn2man b/mdwn2man index 57c41c865..8c70c87c1 100755 --- a/mdwn2man +++ b/mdwn2man @@ -1,7 +1,10 @@ #!/usr/bin/perl # Warning: hack -print ".TH ikiwiki 1\n"; +my $prog=shift; +my $section=shift; + +print ".TH $prog $section\n"; while (<>) { s{(\\?)\[\[([^\s\]]+)\]\]}{$1 ? "[[$2]]" : $2}eg;