forked from I2P_Developers/i2p.i2p
- Handle gzipped input data in merge tool - Add script to generate compressed data - Add local additions - Add compressed data file, generated from Maxmind data fetched 2013-05-24 - Include data in installer and updater - Update Maxmind license info, now CC-SA 3.0
20 lines
423 B
Bash
Executable File
20 lines
423 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Fetch the latest file from Maxmind, merge with
|
|
# our additions, and compress.
|
|
#
|
|
|
|
FILE1=GeoIPv6.csv.gz
|
|
FILE2=geoipv6-extras.csv
|
|
FILEOUT=geoipv6.dat.gz
|
|
|
|
rm -f $FILE1 $FILEOUT
|
|
wget http://geolite.maxmind.com/download/geoip/database/$FILE1
|
|
if [ "$?" -ne "0" ]
|
|
then
|
|
echo 'Cannot fetch'
|
|
exit 1
|
|
fi
|
|
java -cp ../../build/i2p.jar:../../build/router.jar net.i2p.router.transport.GeoIPv6 $FILE1 $FILE2 $FILEOUT
|
|
exit $?
|