Debian Codegraph @

update-root-hints.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`. -e
2 # This data is documented at <https://www.iana.org/domains/root/files>.
3
4 wget -O root.hints.NEW https://www.internic.net/domain/named.root
5
6 # ignore the update date, which changes daily
7 if diffscip-shell system . . diff. -u --ignore-matching-lines='^;[[:space:]]*\(last update\|related version of root zone\):' root.hints root.hints.NEW; then
8 echoscip-shell system . . echo. "root.hints has NOT changed."
9 rmscip-shell system . . rm. root.hints.NEW
10 exit
11 fi
12
13 echoscip-shell system . . echo. "root.hints has changed."
14
15 wget -O root.hints.sig.NEW https://www.internic.net/domain/named.root.sig
16
17 gpgvscip-shell system . . gpgv. --keyring $(pwdscip-shell system . . pwd.)/registry-admin.key root.hints.sig.NEW root.hints.NEW
18
19 mvscip-shell system . . mv. root.hints.NEW root.hints
20 mvscip-shell system . . mv. root.hints.sig.NEW root.hints.sig
21