repo.or.cz
/
tor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use EWMA instead of bare rtt for min rtt.
[tor.git]
/
scripts
/
maint
/
geoip
/
update_geoip.sh
blob
743683ab62547e288e7be30e158921c0de12ae6a
1
#!/bin/sh
2
3
set -e
4
5
DIR
=
$
(
cd
"$(dirname "
$0
")"
&&
pwd
)
6
TMP
=
$
(
mktemp
-d
)
7
8
location
--quiet
update
9
location dump
"
$TMP
/geoip-dump.txt"
10
11
OLDDIR
=
$
(
pwd
)
12
cd
"
$DIR
/geoip-db-tool/"
13
cargo build
--release
14
cd
"
$OLDDIR
"
15
16
"
$DIR
/geoip-db-tool/target/release/geoip-db-tool"
-i
"
$TMP
/geoip-dump.txt"