Skip to content

Commit 35fae99

Browse files
committed
Changed manpage to txt2man format
1 parent acf5b76 commit 35fae99

File tree

6 files changed

+1018
-954
lines changed

6 files changed

+1018
-954
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ else
224224
fi
225225

226226
AC_PROG_INSTALL
227-
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile man/packit.8 src/version.h])
227+
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile src/version.h])
228228
AC_OUTPUT
229229

230230
BINDIR=`eval echo ${bindir}`; BINDIR=`eval echo ${BINDIR}`;

man/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Original author: Darren Bounds <[email protected]>
44
#
55
# Copyright 2002 Darren Bounds <[email protected]>
6+
# Copyright 2016 Joao Eriberto Mota Filho <[email protected]>
67
#
78
# This program is free software; you can redistribute it and/or
89
# modify it under the terms of the GNU General Public License

man/generate-man.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ P_VERSION=1.1
1010
P_MANLEVEL=8
1111
P_DESCRIPT="Packet analysis and injection tool"
1212

13-
[ -e $P_NAME.txt ] || { echo "$P_NAME.txt not found"; exit 1; }
13+
TEST=$(txt2man -h 2> /dev/null)
14+
15+
[ ! "$TEST" ] && { echo "ERROR: You need install txt2man program."; exit 1; }
16+
17+
[ -e $P_NAME.txt ] || { echo "ERROR: $P_NAME.txt not found."; exit 1; }
1418

1519
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)