mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-26 16:30:07 +08:00
Getting google maps version dynamically and writing it to conf/maps_data/version
This commit is contained in:
committed by
Felix Ruess
parent
776383af8c
commit
161d758ec0
@@ -0,0 +1,13 @@
|
||||
DATADIR = $(PAPARAZZI_HOME)/conf/maps_data
|
||||
Q=@
|
||||
|
||||
all: $(DATADIR)/index $(DATADIR)/version
|
||||
|
||||
$(DATADIR):
|
||||
mkdir $(DATADIR)
|
||||
|
||||
$(DATADIR)/index: $(DATADIR)
|
||||
$(@)wget -O $(@) http://maps.google.com/
|
||||
|
||||
$(DATADIR)/version: $(DATADIR)/index
|
||||
$(Q)grep -P "http://khm[0-9]+.google.com/kh/v=[0-9]+.x26" $(DATADIR)/index | sed -E s#.*http://khm[0-9]+.google.com/kh/v=## | sed -E s#.x26.*## > $(@)
|
||||
Reference in New Issue
Block a user