Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/misc fix update-domains rule.



details:   https://anonhg.NetBSD.org/src/rev/968e9dc819c8
branches:  trunk
changeset: 374534:968e9dc819c8
user:      nikita <nikita%NetBSD.org@localhost>
date:      Sun Apr 30 22:08:14 2023 +0000

description:
fix update-domains rule.

diffstat:

 share/misc/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 24b5c256b4c7 -r 968e9dc819c8 share/misc/Makefile
--- a/share/misc/Makefile       Sun Apr 30 14:20:23 2023 +0000
+++ b/share/misc/Makefile       Sun Apr 30 22:08:14 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.38 2015/04/23 02:01:12 mrg Exp $
+#      $NetBSD: Makefile,v 1.39 2023/04/30 22:08:14 nikita Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/8/93
 
 FILES= NetBSD.el acronyms acronyms-o acronyms.comp airport ascii \
@@ -23,7 +23,7 @@ FILESBUILD_acronyms-o=yes
 
 # According to iana%ISI.EDU@localhost, the URL below is the authoritative list
 # distributed by the ISO 3166 Maintenance Agency.
-DOMAIN_URL=    http://www.iana.org/root-whois/index.html 
+DOMAIN_URL=    https://www.iana.org/domains/root/db 
 update-domains:
        ( \
          echo '# $$''NetBSD''$$' ;  \
@@ -31,7 +31,9 @@ update-domains:
          echo '# Last update:' `date` ; \
          echo '#' ; \
          ftp -o - ${DOMAIN_URL} \
-         | ${TOOL_SED} -n -f ${.CURDIR}/domains.sed \
+         | ${TOOL_SED} -f ${.CURDIR}/nanpa.sed \
+         | ${TOOL_SED} '/^\..*/!d' \
+         | ${TOOL_AWK} 'BEGIN{FS=":"} {print $$1 " " $$3}' \
         ) > domains ; \
 
 update-na.phone:



Home | Main Index | Thread Index | Old Index