From ac0f19c267976951d915458b935217d2380587f4 Mon Sep 17 00:00:00 2001 From: ntakahas Date: Mon, 12 Sep 2005 07:54:08 +0000 Subject: [PATCH] Use FILENAME built-in variable. --- CASED.awk | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/CASED.awk b/CASED.awk index 3dd9250..174999a 100644 --- a/CASED.awk +++ b/CASED.awk @@ -45,7 +45,6 @@ BEGIN { tohex["e"] = 15; tohex["f"] = 16; - FILE = "UnicodeData.txt"; FS = "[ \t]*[;#][ \t]*"; } @@ -77,7 +76,7 @@ function range(str, bit) { /^[^\#]/ { - if (FILE == "UnicodeData.txt") { + if (FILENAME == "UNIDATA/UnicodeData.txt") { if ($3 ~ /L[ltu]/) single($1, 1); else if ($3 ~ /Mn|Me|Cf|Lm|Sk/) @@ -85,7 +84,7 @@ function range(str, bit) { next; } - else if (FILE == "PropList.txt") { + else if (FILENAME == "UNIDATA/PropList.txt") { if ($2 ~ /Other_(Upp|Low)ercase/) { if (index($1, ".")) range($1, 1); @@ -106,14 +105,6 @@ function range(str, bit) { } } -/^\# PropList-.+\.txt/ { - FILE = "PropList.txt"; -} - -/^\# WordBreakProperty-.+\.txt/ { - FILE = "WordBreakProperty.txt"; -} - END { for (i in cased) printf ("0x%X %d\n", i, cased[i]); -- 1.7.10.4