summaryrefslogtreecommitdiff
path: root/navit/script/check_itemdef
blob: 361f87be358e7e4202858ec8261298ef556ce3f0 (plain)
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
#! /bin/sh
function check_item
{
	grep -q "[(,]$1)" ../item_def.h || echo "$1 missing"
}

echo osm2navit.c
egrep '^	"[nw]	+[^	]+	+[^	]+	+' ../osm2navit.c | sed "s/.*	//" |
while read -r x
do
	check_item "${x%%\\n\"}"
done

echo "navit.xml"
grep '<item type="' <../navit.xml | cut -d \" -f 2 | tr "," "\012" |
while read -r x
do
	check_item "$x"
done

echo "garmintypes.txt"
grep ^0x ../data/garmin/garmintypes.txt | sed -e 's/[A-Z][A-Z]*, //' -e 's/.*= \([^,]*\),.*/\1/' |
while read -r x
do
	check_item "$x"
done