projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Add ikiwiki-mass-rebuild script, ripped out of the postinst.
[ikiwiki.git]
/
mdwn2man
diff --git
a/mdwn2man
b/mdwn2man
index 57c41c86590042f9f6a8a89a64ec569fd07348ba..8c70c87c157217f6dc108b092e7b21567a658265 100755
(executable)
--- 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;