1# Magellan Mapsend
2rm -f ${TMPDIR}/mm.mapsend ${TMPDIR}/mm.gps
3gpsbabel -i geo -f ${REFERENCE}/geocaching.loc -o mapsend -F ${TMPDIR}/mm.mapsend
4gpsbabel -i mapsend -f ${TMPDIR}/mm.mapsend -o gpsutil -F ${TMPDIR}/mm.gps
5compare ${TMPDIR}/mm.gps ${REFERENCE}/gu.wpt
6
7#
8# MAPSEND waypoint / route format
9#
10rm -f ${TMPDIR}/route.mapsend
11gpsbabel -r -i mapsend -f ${REFERENCE}/route/route.mapsend -o mapsend \
12         -F ${TMPDIR}/route.mapsend
13bincompare ${TMPDIR}/route.mapsend ${REFERENCE}/route/route.mapsend
14
15#
16# MAPSEND track format
17#
18rm -f ${TMPDIR}/mapsend.trk
19gpsbabel -t -i mapsend -f ${REFERENCE}/track/mapsend.trk -o mapsend,trkver=3 \
20         -F ${TMPDIR}/mapsend.trk
21compare ${TMPDIR}/mapsend.trk ${REFERENCE}/track/
22
23