repo.or.cz
/
docutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add list of failing pages
[docutils.git]
/
sandbox
/
manpage-writer
/
lexgrog-test.sh
blob
7c5bd772108eed378c0acb7562749b5bb093c423
1
#!/bin/sh
2
#
3
# test manpages with lexgrog for whatis/apropos
4
5
DIR
=
output
6
7
CNT
=
0
8
ERR
=
0
9
FAILS
=
""
10
for
F
in
$DIR
/*
.man
;
do
11
CNT
=
$
((
CNT
+
1
))
12
lexgrog
$F
13
if
test
$?
-ne
0
;
then
14
ERR
=
$
((
ERR
+
1
))
15
FAILS
=
"
$FAILS
$(basename
$F
)"
16
fi
17
done
18
if
test
$ERR
-eq
0
;
then
19
echo
"OK
$CNT
tests passed"
20
else
21
echo
"ERROR
$ERR
of
$CNT
tests failed"
22
echo
"--
$FAILS
"
23
fi