Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # config
- #DIR="http://openmtbmap.x-nation.de/maps/germany"
- DIR="ftp://ftp5.gwdg.de/pub/misc/openstreetmap/openmtbmap/germany"
- FILE="mtbbayern.exe"
- cd ~/gps/maps/mtbbayern
- ts_old=`stat -c %Y $FILE || echo $?`
- wget -N $DIR/$FILE
- ts_new=`stat -c %Y $FILE || echo $?`
- moddate=`date -r $FILE +"%m%d"`
- if [ $ts_old -lt $ts_new ] || [ $1 = "-f" ] ; then
- ~/gps/scripts/mkgmapLatest.sh
- 7z e -y $FILE
- java -jar ~/gps/mkgmap-*/mkgmap.jar -c ~/gps/.config/mkgmap_by.txt \
- --product-id=$moddate --mapname=omm-by-$moddate \
- --description=omm-by-$moddate widedby.TYP 6526*.img
- mv gmapsupp.img mtbbayern-$moddate.img
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement