Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 2016 02:02:33 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r310198 - head/tools/tools/locale/tools
Message-ID:  <201612180202.uBI22XCu005422@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Dec 18 02:02:33 2016
New Revision: 310198
URL: https://svnweb.freebsd.org/changeset/base/310198

Log:
  Simplify extraction of static collation definition

Modified:
  head/tools/tools/locale/tools/extract-colldef.awk

Modified: head/tools/tools/locale/tools/extract-colldef.awk
==============================================================================
--- head/tools/tools/locale/tools/extract-colldef.awk	Sun Dec 18 01:52:16 2016	(r310197)
+++ head/tools/tools/locale/tools/extract-colldef.awk	Sun Dec 18 02:02:33 2016	(r310198)
@@ -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 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612180202.uBI22XCu005422>