garmin: Karten von radfahrer und kleineisel hinzu

This commit is contained in:
marc
2009-10-04 21:37:52 +02:00
parent d8faaffed3
commit 35e4b3e9f4

View File

@@ -40,5 +40,21 @@ if [ ! -f $TarFile ]; then
#tar -cf $TarFile gmapsupp.img.bz2
fi
# ------------ Radfahrer ----------------------
cd $LocalDir/radfahrer
wget -N http://osm.arndnet.de/
uncompress < Radkarte > Radkarte.html
url_rad=$(cat Radkarte.html | grep img\.zip | cut -f 2 -d '"')
wget -N $url_rad
datestr=$(stat -c %y gmapsupp.img.zip | cut -f 1 -d ' ')
[ -f radfahrer_$datestr.zip ] || cp gmapsupp.img.zip radfahrer_$datestr.zip
rm Radkarte.html
# Kleineisel
cd $LocalDir/kleineisel
url_klein=http://www.kleineisel.de/ralf/gps/garmin/
wget -N $url_klein
Downloadfile=$(cat index.html | grep osm_srtm_germany_[0-9]*\.zip[^.] | cut -f 2 -d '"' | tail -n 1)
wget -N $url_klein/$Downloadfile