aboutsummaryrefslogtreecommitdiff
path: root/mdwn2man
diff options
context:
space:
mode:
Diffstat (limited to 'mdwn2man')
-rwxr-xr-xmdwn2man5
1 files changed, 4 insertions, 1 deletions
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;