1# $NetBSD: Makefile,v 1.22 2001/12/12 01:49:17 tv Exp $ 2# @(#)Makefile 8.1 (Berkeley) 6/8/93 3 4FILES= acronyms airport ascii birthtoken bsd-family-tree country domains \ 5 eqnchar flowers indent.pro inter.phone language man.template \ 6 mdoc.template na.phone operator style zipcodes 7FILESDIR=${BINDIR}/misc 8NOOBJ= # defined 9 10 11# According to iana@ISI.EDU, the URL below is the authoritative list 12# distributed by the ISO 3166 Maintenance Agency. 13update-domains: 14 ftp -o /tmp/domains.$$$$ http://www.iana.org/country-codes.txt ; \ 15 ( \ 16 echo '# $$NetBSD: Makefile,v 1.22 2001/12/12 01:49:17 tv Exp $$' ; \ 17 echo '# ISO 3166 country codes, from http://www.iana.org/country-codes.txt' ; \ 18 echo '# '`grep ^Latest /tmp/domains.$$$$` ; \ 19 echo '#' ; \ 20 perl -ane 'print lc(join(" ", $$F[$$#F-2], @F[0..$$#F-3])),"\n" if /^[A-Z]{2,}\s*.*\d{3}\s*$$/;' </tmp/domains.$$$$ \ 21 ) >domains ; \ 22 rm /tmp/domains.$$$$ 23 24.include <bsd.prog.mk> 25