forked from GPSBabel/gpsbabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chkdoc
executable file
·69 lines (56 loc) · 888 Bytes
/
chkdoc
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
ECODE=0
BABELDOC=${BABELDOC:-~/src/babelweb}
checkit() {
export ECODE
TYPE=$1
STY=$2
DIR=${2}s
if ! grep -q $TYPE $BABELDOC/capabilities.html $BABELDOC/capabilities.inc
then
echo $STY $TYPE is not documented in capabilities.html.
ECODE=1
fi
if ! grep -qi $TYPE $BABELDOC/changes*.html
then
echo $STY $TYPE is not documented in changes.html.
ECODE=1
fi
DOCF=xmldoc/$DIR/${TYPE}.xml
if ! test -f $DOCF ;
then
echo $STY $TYPE is not documented in $DOCF
ECODE=1
fi
}
./gpsbabel -^ |
while read FMT
do
set -- $FMT
TYPE=$1
checkit $TYPE format
done
./gpsbabel -% |
while read FMT
do
set -- $FMT
TYPE=$1
checkit $TYPE filter
done
#
# See if they're in testo.
#
./gpsbabel -^2 |
while read FMT
do
set -- $FMT
case $1 in
file)
TYPE=$3
if ! grep -qi "$TYPE" testo
then
echo $STY $TYPE is not in testo.
ECODE=1
fi
esac
done
exit $ECODE