diff options
Diffstat (limited to 'mdwn2man')
-rwxr-xr-x | mdwn2man | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |