mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
Changed the format of the maps config file
This commit is contained in:
committed by
Stephen Dwyer
parent
ab88268010
commit
159ee17e05
+4
-4
@@ -1,7 +1,7 @@
|
||||
DATADIR = $(PAPARAZZI_HOME)/conf/maps_data
|
||||
Q=@
|
||||
|
||||
all: $(DATADIR)/maps.google.com $(DATADIR)/maps.conf
|
||||
all: $(DATADIR)/maps.google.com $(PAPARAZZI_HOME)/conf/maps.xml
|
||||
|
||||
$(DATADIR):
|
||||
mkdir $(DATADIR)
|
||||
@@ -9,8 +9,8 @@ $(DATADIR):
|
||||
$(DATADIR)/maps.google.com: $(DATADIR)
|
||||
wget -O $(@) http://maps.google.com/
|
||||
|
||||
$(DATADIR)/maps.conf: $(DATADIR)/maps.google.com
|
||||
$(Q)echo "[GOOGLE]" > $(@)
|
||||
$(Q)echo "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.*##` >> $(@)
|
||||
$(PAPARAZZI_HOME)/conf/maps.xml: $(DATADIR)/maps.google.com
|
||||
$(Q)echo "<!DOCTYPE maps SYSTEM \"maps.dtd\">" > $(@)
|
||||
$(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 "" >> $(@)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user