| 1 |
#!/usr/bin/env bash |
| 2 |
# needs pandoc and php installed |
| 3 |
|
| 4 |
# remove old files |
| 5 |
rm fenrir.1 |
| 6 |
rm user.md |
| 7 |
|
| 8 |
# convert to markdown |
| 9 |
php DokuWiki-to-Markdown-Converter/convert.php user.txt |
| 10 |
|
| 11 |
# convert markdown to manpage |
| 12 |
pandoc user.md -f markdown -t man -s -o fenrir.1 |
| 13 |
|