Module Name:    src
Committed By:   nikita
Date:           Sun Apr 30 22:08:14 UTC 2023

Modified Files:
        src/share/misc: Makefile

Log Message:
fix update-domains rule.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/share/misc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/misc/Makefile
diff -u src/share/misc/Makefile:1.38 src/share/misc/Makefile:1.39
--- src/share/misc/Makefile:1.38	Thu Apr 23 02:01:12 2015
+++ src/share/misc/Makefile	Sun Apr 30 22:08:14 2023
@@ -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 i...@isi.edu, 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:

Reply via email to