Skip to content

Commit acf5b76

Browse files
committed
Add generate-man.sh
1 parent 65d73db commit acf5b76

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

man/generate-man.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# Generate the manpage
4+
# Copyright 2016 Joao Eriberto Mota Filho <[email protected]>
5+
# This file is under BSD-3-Clause
6+
7+
P_DATA="22 May 2016"
8+
P_NAME=packit
9+
P_VERSION=1.1
10+
P_MANLEVEL=8
11+
P_DESCRIPT="Packet analysis and injection tool"
12+
13+
[ -e $P_NAME.txt ] || { echo "$P_NAME.txt not found"; exit 1; }
14+
15+
txt2man -d "$P_DATA" -t $P_NAME -r $P_NAME-$P_VERSION -s $P_MANLEVEL -v "$P_DESCRIPT" $P_NAME.txt > $P_NAME.$P_MANLEVEL

0 commit comments

Comments
 (0)