#! /bin/sh /usr/share/dpatch/dpatch-run ## 50-scripts.dpatch by Andreas Putzo ## ## DP: Fix path to osm.xml (Thanks Giovanni Mascellani) ## DP: Fix bashism in examples/wpget. @DPATCH@ diff -urNad gpsdrive-2.10~pre4~/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py gpsdrive-2.10~pre4/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py --- gpsdrive-2.10~pre4~/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py 2007-09-15 15:11:59.000000000 +0000 +++ gpsdrive-2.10~pre4/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py 2008-07-15 17:37:07.000000000 +0000 @@ -166,7 +166,7 @@ home = os.environ['HOME'] data = "@DATA_DIR@/mapnik" - mapfile = data + "/osm.xml" + mapfile = home + "/.gpsdrive/osm.xml" tile_dir = home + "/.gpsdrive/maps/mapnik/" mapkoordfile = home + "/.gpsdrive/maps/map_koord.txt" diff -urNad gpsdrive-2.10~pre4~/scripts/wpget gpsdrive-2.10~pre4/scripts/wpget --- gpsdrive-2.10~pre4~/scripts/wpget 2007-09-14 21:47:07.000000000 +0000 +++ gpsdrive-2.10~pre4/scripts/wpget 2008-07-15 17:38:12.000000000 +0000 @@ -32,7 +32,7 @@ done opt=${opt:= -w} -if [[ ${#opt} != "3" && ${#opt} != "12" ]]; then +if [ ${#opt} -ne 3 -a ${#opt} -ne 12 ]; then echo "Usage: $0 [-r|--get-routes]|[-w|--get-waypts]|[-t|--get-tracks] [-d device|--device device]" >&2 ; echo "defaults are: --get-waypts and --device /dev/gps" >&2 ; exit 1 ;