Permalink
Browse files

--bug

  • Loading branch information...
1 parent 66aea0b commit c2abaecb085432eb89b19b13eb86446111919afe Bernhard Tittelbach committed Jun 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 create_omtb_garmin_img.sh
@@ -61,7 +61,7 @@ else
print "\nERROR: not a openmtbmap.org or openvelomap.org file ?"
usage
fi
-DSTFILENAME="${OMTB_EXE:h}/${OMTBORVELO}_${OMTB_NAME}.img"
+DSTFILENAME="${OMTB_EXE:A:h}/${OMTBORVELO}_${OMTB_NAME}.img"
DESC="${OMTBORVELO}_${OMTB_NAME}"
@@ -117,7 +117,7 @@ if [[ -n $MKGMAP && -f $MKGMAP ]]; then
print "using mkgmap, building address search index..."
#java -Xmx1000M -jar mkgmap.jar --family-id=$FID --index --description="$DESC" --series-name="$DESC" --family-name="$DESC" --show-profiles=1 --product-id=1 --gmapsupp 6*.img 7*.img 01002468.TYP
java -Xmx3000M -jar "$MKGMAP" --family-id=$FID --index --description="$DESC" --series-name="$DESC" --family-name="$DESC" --show-profiles=1 --product-id=1 --gmapsupp [67]*.img 01002468.TYP || exit 7
- mv (#i)gmapsupp.img "${DSTFILENAME}"
+ mv (#i)gmapsupp.img "${DSTFILENAME}" || exit 7
else
print "mkgmap not found, using gmt..."
$GMT_CMD -j -o "${DSTFILENAME}" -f $FID -m "$DESC" 6*.img 7*.img 01002468.TYP || exit 7

0 comments on commit c2abaec

Please sign in to comment.