4 # File ID: 0c214154-5d4a-11df-940b-90e6ba3022ac
9 if echo $f |
grep -qi '\.gpx$'; then
11 if [ -n "$(grep http://www.topografix.com/GPX/1/0 $f)" ]; then
13 elif [ -n "$(grep http://www.topografix.com/GPX/1/1 $f)" ]; then
16 echo "xt: $f: Unknwon GPX version" >&2
19 if [ -n "$gpxver" ]; then
20 gpx_xsd
=~
/bin
/Git
/gpstools
/Tools
/xsd
/gpx
/gpx-
$gpxver.xsd
21 if [ -e $gpx_xsd ]; then
22 xmllint
--noout --schema $gpx_xsd $f || retval
=1
24 xmllint
--noout --schema http
://www.topografix.com
/GPX
/1/1/gpx.xsd
$f || retval
=1
28 xmllint
--valid --noout "$f" || retval
=1