Simplify extraction of static collation definition
This commit is contained in:
parent
23f4917b10
commit
f312b7a1e9
@ -5,14 +5,8 @@ BEGIN {
|
||||
print "# from CLDR project data, obtained from http://cldr.unicode.org/"
|
||||
print "# -----------------------------------------------------------------------------"
|
||||
}
|
||||
$1 == "comment_char" { print $0 }
|
||||
$1 == "escape_char" { print $0 }
|
||||
$1 == "LC_COLLATE" {
|
||||
print $0
|
||||
while (getline line) {
|
||||
print line
|
||||
if (line == "END LC_COLLATE") {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
$1 == "comment_char" { print }
|
||||
$1 == "escape_char" { print }
|
||||
$1 == "LC_COLLATE" { doprint = 1 }
|
||||
doprint == 1 { print }
|
||||
$1 == "END" && $2 == "LC_COLLATE" { exit 0 }
|
||||
|
Loading…
Reference in New Issue
Block a user