-
Notifications
You must be signed in to change notification settings - Fork 0
/
man.sh
executable file
·39 lines (32 loc) · 1.15 KB
/
man.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# -*-mode: ksh; ksh-indent: 2; -*-
#
# $Header$
#
set -e
set -u
PATH=/bin:/usr/sbin:/usr/bin:/sbin:/bin
export PATH
cd util/src
rm -rf ../man1
mkdir -p ../man1
make clean 1>/dev/null
make 2>/dev/null 1>/dev/null
tools="qsdt qsexec qsfilter2 qsgrep qslog qslogger qspng qsre qsrespeed qsrotate qssign qstail qsgeo qshead"
for t in $tools; do
echo "./$t --man"
./$t --man > ../man1/${t}.1
man2html -r ../man1/${t}.1 | grep -v "Content-type: text/html" | \
grep -v "cgi-bin/man/man2html" | \
grep -v "using the manual pages" | \
grep -v "Time: " | \
sed -e "s:../man1/::g" \
-e "s:../index.html:index.html#utilities:g" \
-e "s:</HEAD>:<META name='KeyWords' content='Quality of Service, QoS, Apache Web Server, Web application security, WAF, Open Source Software, Security, Proxy'/>\n</HEAD>:g" \
-e "s:</HEAD>:<META name='author' content='Pascal Buchbinder' />\n</HEAD>:g" \
-e "s:This document was created by::g" \
> ../../doc/${t}.1.html
done
# insert process image
sed -i ../../doc/qsfilter2.1.html \
-e "s:<H2>DESCRIPTION</H2>:<H2>DESCRIPTION</H2><p><img src=\"qsfilter2_process.gif\" alt=\"overview\"></p>:g"