From 8b0a3ea7c0d599fdcf560d813ccc4ff20fa1aa82 Mon Sep 17 00:00:00 2001 From: "Sergey V. Udaltsov" Date: Thu, 25 Mar 2010 23:18:48 +0000 Subject: Fix short descriptions to match ISO3166-alpha3 codes Most of short descriptions are fixed to be valid ISO codes. Some of them cannot be bound to ISO codes. Added test script to validate codes. Closing https://bugs.freedesktop.org/show_bug.cgi?id=27306 --- tests/testShortDescriptions | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 tests/testShortDescriptions (limited to 'tests') diff --git a/tests/testShortDescriptions b/tests/testShortDescriptions new file mode 100755 index 00000000..886b5ab0 --- /dev/null +++ b/tests/testShortDescriptions @@ -0,0 +1,6 @@ +#!/bin/sh + +awk '/shortDescr/{print toupper($0)}' ../rules/base.xml.in | sed 's/<[^>]*>//g;s/ //g' | sort | uniq > xml.sd +awk '{print $1}' ../docs/iso3166-3.csv | sort > iso.sd +diff -u iso.sd xml.sd | grep '+' + -- cgit v1.2.3