[gmap] fix for comma separated input
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Mon, 7 Oct 2013 10:32:29 +0000 (12:32 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Mon, 7 Oct 2013 10:32:29 +0000 (12:32 +0200)
Suggested by Felician Nemeth.

planetlab/exp-tool/Makefile

index 52aae82..ad56acc 100644 (file)
@@ -486,7 +486,7 @@ cache/geocode.%: cache/loc.% $(CONF)
 
 cache/loc.%: $(CONF)
        @wget -O - 'http://freegeoip.net/csv/$(HOST_$*)' | \
-           awk -F, '{ printf "%s, %s\n", $$8, $$9 }' > $@
+           awk -F'", *"' '{ printf "\"%s\", \"%s\"\n", $$8, $$9 }' > $@
 
 ####################
 # 'virtual' targets in that there's no real file attached