| 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright 2015-2019 Joao Eriberto Mota Filho <[email protected]> |
| 4 | # Create a manpage using txt2man command. |
| 5 | # |
| 6 | # This script can be used under BSD-3-Clause license. |
| 7 | |
| 8 | T2M_DATE="18 Aug 2020" |
| 9 | T2M_NAME=parsero |
| 10 | T2M_VERSION=0.0+git20140929.e5b585a |
| 11 | T2M_LEVEL=1 |
| 12 | T2M_DESC="Audit tool for robots.txt of a site" |
| 13 | |
| 14 | # Don't change the following lines |
| 15 | TEST=$(txt2man -h 2> /dev/null) |
| 16 | [ "$TEST" ] || { echo -e "\nYou need to install txt2man, from https://github.com/mvertes/txt2man.\n"; exit 1; } |
| 17 | |
| 18 | txt2man -d "$T2M_DATE" -t $T2M_NAME -r $T2M_NAME-$T2M_VERSION -s $T2M_LEVEL -v "$T2M_DESC" $T2M_NAME.txt > $T2M_NAME.$T2M_LEVEL |