martians: overhaul

- Use the XML files instead of the CSV
- Separate output in inbound and outbound tables
- Add script for producing all the outputs
This commit is contained in:
Lucas 2020-10-27 02:56:28 +00:00
parent 56b12b3023
commit 5db09725a3
6 changed files with 793 additions and 79 deletions

View file

@ -0,0 +1,17 @@
#!/bin/sh
script=iana-ip-special-registry-parser.py
process_xml()
{
v=$1
dir=$2
in=iana-ip$v-special-registry.xml
out=martians-$v-${dir%bound}.txt
python3 "$script" "$dir" <"$in" >"$out"
}
process_xml v4 inbound
process_xml v4 outbound
process_xml v6 inbound
process_xml v6 outbound