1 #!/bin/bash 2 3 # Copyright 2015-2020 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br> 4 # Create a manpage using txt2man command. Version 2.0, 2020-06-19. 5 # This file is part of txt2man package for Debian. 6 # This script can be used under BSD-3-Clause license. 7 8 #-------------------------------------------------------- 9 # Don't change the following lines 10 TEST=$(txt2man -h 2> /dev/null) 11 [ "$TEST" ] || { echo -e "\nYou need to install txt2man, from https://github.com/mvertes/txt2man.\n"; exit 1; } 12 13 function create-man { 14 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 15 } 16 #-------------------------------------------------------- 17 18 # Put here all data for your first manpage (in T2M lines) 19 T2M_DATE="01 Oct 2021" 20 T2M_NAME=stress 21 T2M_VERSION=1.0.5 22 T2M_LEVEL=1 23 T2M_DESC="tool to impose load on and stress test systems" 24 create-man