mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
17 lines
275 B
Bash
17 lines
275 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
DIR=$(cd "$(dirname "$0")" && pwd)
|
||
|
TMP=$(mktemp -d)
|
||
|
|
||
|
location update
|
||
|
location dump "$TMP/geoip-dump.txt"
|
||
|
|
||
|
OLDDIR=$(pwd)
|
||
|
cd "$DIR/geoip-db-tool/"
|
||
|
cargo build --release
|
||
|
cd "$OLDDIR"
|
||
|
|
||
|
"$DIR/geoip-db-tool/target/release/geoip-db-tool" -i "$TMP/geoip-dump.txt"
|