Add missing trailing dot in sentences
[viking/guyou.git] / test / check_gpx.sh
blobc632a2536c8208e1f86f06fb918b0f95782117d1
1 #!/bin/sh
3 # Enable running in test directory or via make distcheck when $srcdir is defined
4 if [ -z "$srcdir" ]; then
5 srcdir=.
6 fi
8 # Avoid creator line as that now has the potential to be changed
9 # (either via preference setting or version number change)
10 grep -v "^creator=" $srcdir/SF#022.gpx > $srcdir/SF#022-creator.gpx
11 result=$(./gpx2gpx < $srcdir/SF#022.gpx | grep -v "^creator=" | grep -vF "<desc>Created by:" | diff $srcdir/SF#022-creator.gpx -)
12 if [ $? != 0 ]; then
13 echo "gpx2gpx failure"
14 exit 1
16 rm $srcdir/SF#022-creator.gpx