From: Mischa POSLAWSKY Date: Sun, 1 Feb 2015 07:17:27 +0000 (+0100) Subject: countries: fix antarctica continent class X-Git-Tag: v1.6~52 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/dcefcbbaea0166c5eedf208ada319e451ddff160 countries: fix antarctica continent class Convert GeoNames' AN to our AA to fix styling. --- diff --git a/tools/mkcountries-geonames b/tools/mkcountries-geonames index 592ce75..99201b8 100755 --- a/tools/mkcountries-geonames +++ b/tools/mkcountries-geonames @@ -41,6 +41,7 @@ my %cc; # map of country code to info array while (<>) { /^#/ and next; # skip comments my ($iso, $name, $cont) = (split /\t/)[0, 4, 8]; + $cont =~ s/\AAN\z/aa/; # different antarctica abbreviation my $class = "c-\L$cont"; $cc{ lc $iso } = [ $name, $class ]; }