Fix:Core:Avoid point reduction of connecting points of multi polygons
[navit-package] / navit / script / check_itemdef
1 #! /bin/sh
2 function check_item_def
3 {
4         grep -q "[(,]$1)" ../item_def.h || echo "$1 missing"
5 }
6
7 function check_item_xml
8 {
9         grep -q "^$1\$" check.$$ || echo "$1 will not be rendered"
10 }
11
12
13 awk '/<layout name="Car"/,/<\/layout/ { if (/<itemgra/) {print $0} }' < ../navit.xml | sed 's/.*item_types="\([^"]*\)".*/\1/' | tr "," "\012" | sort -u >check.$$
14 echo item_def.h
15 grep "^ITEM" ../item_def.h | sed -e "s/ITEM(\(.*\))/\1/" -e "s/ITEM2([^,]*,\(.*\))/\1/" |
16 while read -r x
17 do
18         check_item_xml "$x"
19 done
20
21 rm -f check.$$
22 echo osm2navit.c
23 egrep '^        "[nw]   +[^     ]+      +[^     ]+' ../osm2navit.c | sed "s/.*  //" | sort -u |
24 while read -r x
25 do
26         check_item_def "${x%%\\n\"}"
27 done
28
29 echo "navit.xml"
30 grep '<itemgra item_types="' <../navit.xml | cut -d \" -f 2 | tr "," "\012" |
31 while read -r x
32 do
33         check_item_def "$x"
34 done
35
36 echo "garmintypes.txt"
37 grep "^[0-9]" ../map/garmin/garmintypes.txt | sed -e 's/[A-Z][A-Z]*, //' -e 's/.*= \([^,]*\),.*/\1/' | sort -u |
38 while read -r x
39 do
40         check_item_def "$x"
41 done
42