Permalink
Browse files

Use capital letters at the beginning of messages

  • Loading branch information...
Thomas Friebel Thomas Friebel
Thomas Friebel authored and Thomas Friebel committed Oct 5, 2012
1 parent cd4487c commit 307e416e4687f20a63a5f7a29a9db86a08d33fce
Showing with 8 additions and 8 deletions.
  1. +8 −8 create_omtb_garmin_img.sh
View
@@ -61,7 +61,7 @@ elif [[ ${OMTB_EXE:t} == velo* ]]; then
OMTBORVELO=openvelomap
OMTB_NAME="${OMTB_EXE:t:r:s/velo/}"
else
- print "\nERROR: not a openmtbmap.org or openvelomap.org file ?"
+ print "\nERROR: Not a openmtbmap.org or openvelomap.org file ?"
usage
fi
DESC="${OMTBORVELO}_${OMTB_NAME}"
@@ -75,14 +75,14 @@ else
fi
if [[ -e $DSTFILENAME ]]; then
- print "\nWarning: the script will create (overwrite) $DSTFILENAME"
+ print "\nWarning: The script will create (overwrite) $DSTFILENAME"
print " but $DSTFILENAME already exists."
read -q "?Continue and overwrite ? [y/N] " || exit 0
print ""
fi
if [[ -e $TMPDIR ]] ; then
- print "\nWarning: the script wants to create directory $TMPDIR, but it already exists."
+ print "\nWarning: The script wants to create directory $TMPDIR, but it already exists."
if [[ -d $TMPDIR ]] ; then
print " If you press [y], $OMTB_EXE will be extracted"
print " to $TMPDIR regardless of its contents."
@@ -103,7 +103,7 @@ if [[ -z $FIMG_a ]] ; then
print "Extracting $OMTB_EXE ..."
7z x -y -o$TMPDIR ${OMTB_EXE} &>/dev/null || exit 1
FIMG_a=(${TMPDIR}/6<000-999>0000.img(N[1]))
- [[ -z $FIMG_a ]] && {print "\nERROR, could not find 6*.img file after extracting $OMTB_EXE" >/dev/stderr ; exit 1}
+ [[ -z $FIMG_a ]] && {print "\nERROR: Could not find 6*.img file after extracting $OMTB_EXE" >/dev/stderr ; exit 1}
fi
if [[ -f $TYPFILE ]] ; then
TYPFILE="${TYPFILE:A}"
@@ -117,18 +117,18 @@ cd $TMPDIR || exit 5
if [[ -z $TYPFILE ]] ; then
print "\nERROR: TYP-file or -style not found" > /dev/stderr
- print " please choose your own file or one of these styles: " *.(#l)TYP(.N:r) > /dev/stderr
+ print " Please choose your own file or one of these styles: " *.(#l)TYP(.N:r) > /dev/stderr
exit 2
fi
-print "using display-TYP-file: $TYPFILE"
+print "Using display-TYP-file: $TYPFILE"
cp $TYPFILE 01002468.TYP || exit 4
FID=${${FIMG_a:t}[1][1,4]}
-print using FID $FID
+print "Using FID $FID"
$GMT_CMD -wy $FID 01002468.TYP
if [[ -n $MKGMAP ]]; then
- print "using mkgmap, building address search index..."
+ 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}" || exit 7

0 comments on commit 307e416

Please sign in to comment.