aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/zipcodes/scripts/gennew.pl
diff options
context:
space:
mode:
authoritojun <itojun@FreeBSD.org>1997-11-12 13:12:18 +0800
committeritojun <itojun@FreeBSD.org>1997-11-12 13:12:18 +0800
commitdc9c3c2706648a4509bd4621421a5281be1e4be4 (patch)
tree81e18b7f35127aca5e2b4b60257ebec12c60eccb /japanese/zipcodes/scripts/gennew.pl
parentc7e0508b5510a3819129028bc7e6aaf3d9d8f258 (diff)
downloadfreebsd-ports-graphics-dc9c3c2706648a4509bd4621421a5281be1e4be4.tar.gz
freebsd-ports-graphics-dc9c3c2706648a4509bd4621421a5281be1e4be4.tar.zst
freebsd-ports-graphics-dc9c3c2706648a4509bd4621421a5281be1e4be4.zip
japanese zipcode tables. includes both 3/5 digits form and 7 digits form.
just like /usr/share/misc/zipcodes.
Diffstat (limited to 'japanese/zipcodes/scripts/gennew.pl')
-rw-r--r--japanese/zipcodes/scripts/gennew.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/japanese/zipcodes/scripts/gennew.pl b/japanese/zipcodes/scripts/gennew.pl
new file mode 100644
index 00000000000..a7f1b87dbe8
--- /dev/null
+++ b/japanese/zipcodes/scripts/gennew.pl
@@ -0,0 +1,16 @@
+while (<>) {
+ s/"//g;
+ split(/,/, $_);
+ $_[2] =~ s/[ \t]//g;
+ $_[8] = '' if ($_[8] eq '以下に掲載がない場合');
+ $zipstr = $_[6] . ' ' . $_[7] . ' ' . $_[8]; # uniq
+ $zipstr =~ s/[ \t]+$//;
+ $zip{$zipstr} = $_[2];
+}
+
+print "# Zip code:location\n";
+print "# 7 digits zipcode for japan, used since feb98.\n";
+foreach $i (sort {$zip{$a} cmp $zip{$b}} keys %zip) {
+ next if ($i eq '');
+ print $zip{$i} . ':' . $i . "\n";
+}
f='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/flounder?h=gnome-3.24&id=7b4407af5d16337cfb1124308a79203e60bea037'>After repo copy from graphics category, update all appropriatelioux2002-11-291-1/+1 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-112-2/+1 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2