IP to Geo

IP to Geo Commit Details

Date:2016-02-24 19:17:40 (4 years 8 months ago)
Author:Grégory Soutadé
Branch:master
Commit:0973b18da9ba67e1ae9e2a1dc04a5e061421e1f5
Parents: ad33c94c6fd5092e298703a141e603da0a765540
Message:Add force_ip_data rule to data Makefile

Changes:
Mdata/Makefile (1 diff)

File differences

data/Makefile
2121
2222
2323
24
24
2525
2626
2727
2828
2929
30
31
32
3033
3134
@md5sum -c $@ || wget "ftp://ftp.ripe.net/pub/stats/$(basename $@)/delegated-$(basename $@)-extended-latest" -O $(basename $@) ; true
$(DEST): $(PROVIDERS)
@cat $(PROVIDERS) | grep -v asn | grep -v summary | grep -v '#' | grep ipv[46] | sort -n -k 4 -t '|' > $(DEST)
@cat $(PROVIDERS) | grep -v asn | grep -v summary | grep -v '#' | grep ipv[46] | grep -v reserved | sort -n -k 4 -t '|' > $(DEST)
$(IP_DATA): $(DEST)
@echo "Rebuild ip_data.c"
@./build_c_array.py > ../src/ip_data.c
force_ip_data:
@echo "Force rebuild ip_data.c"
@./build_c_array.py > ../src/ip_data.c
clean:
rm -f $(PROVIDERS) $(DEST) $(SHA1_FILE) $(MD5)

Archive Download the corresponding diff file

Branches

Tags