2 function check_item_def
4 grep -q "[(,]$1)" ../item_def.h || echo "$1 missing"
7 function check_item_xml
9 grep -q "^$1\$" check.$$ || echo "$1 will not be rendered"
13 awk '/<layout name="Car"/,/<\/layout/ { if (/<itemgra/) {print $0} }' < ../navit.xml | sed 's/.*item_types="\([^"]*\)".*/\1/' | tr "," "\012" | sort -u >check.$$
15 grep "^ITEM" ../item_def.h | sed -e "s/ITEM(\(.*\))/\1/" -e "s/ITEM2([^,]*,\(.*\))/\1/" |
23 egrep '^ "[nw] +[^ ]+ +[^ ]+' ../osm2navit.c | sed "s/.* //" | sort -u |
26 check_item_def "${x%%\\n\"}"
30 grep '<itemgra item_types="' <../navit.xml | cut -d \" -f 2 | tr "," "\012" |
36 echo "garmintypes.txt"
37 grep "^[0-9]" ../map/garmin/garmintypes.txt | sed -e 's/[A-Z][A-Z]*, //' -e 's/.*= \([^,]*\),.*/\1/' | sort -u |