changed dynamic google version update to use maps.xml.example, make won't fail and version won't fall back when no internet, version always updated with interet

This commit is contained in:
Stephen Dwyer
2011-08-01 23:43:53 -06:00
parent d87202d2da
commit 003161cb28
3 changed files with 11 additions and 5 deletions
+3 -2
View File
@@ -6,11 +6,12 @@ all: $(DATADIR)/maps.google.com $(PAPARAZZI_HOME)/conf/maps.xml
$(DATADIR):
mkdir $(DATADIR)
$(DATADIR)/maps.google.com: $(DATADIR)
$(DATADIR)/maps.google.com: $(DATADIR) FORCE
wget -O $(@) http://maps.google.com/
$(PAPARAZZI_HOME)/conf/maps.xml: $(DATADIR)/maps.google.com
$(Q)echo "<!DOCTYPE maps SYSTEM \"maps.dtd\">" > $(@)
$(Q)echo "<!DOCTYPE maps SYSTEM \"maps.dtd\">\n" > $(@)
$(Q)echo "<maps google_version=\""`grep -P "http://khm[0-9]+.google.com/kh/v=[0-9]+.x26" $(DATADIR)/maps.google.com | sed -E s#.*http://khm[0-9]+.google.com/kh/v=## | sed -E s#.x26.*##`"\"/>" >> $(@)
$(Q)echo "" >> $(@)
Force: