-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·18 lines (12 loc) · 768 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
[ -e ~/registry ] && (cd ~/registry; git pull) || git clone https://git:$1@git.dn42.dev/dn42/registry ~/registry --depth 1 --single-branch
mkdir -p data
wget https://github.com/isjerryxiao/rushed_dn42_map/blob/pages/parsed.jsonl.bz2?raw=true -O data/table.jsonl.bz2
python3 main.py
rm -f data/table.jsonl.bz2
rm -rf data/table
mkdir -p data/registry
java -jar wizard/RegistryWizard.jar ~/registry hierarchicalPrefixes v4 true > data/registry/prefix.4.json
java -jar wizard/RegistryWizard.jar ~/registry hierarchicalPrefixes v6 > data/registry/prefix.6.json
java -jar wizard/RegistryWizard.jar ~/registry inetnumMetadata v4 true > data/registry/meta.4.json
java -jar wizard/RegistryWizard.jar ~/registry inetnumMetadata v6 > data/registry/meta.6.json