Skip to content

Commit

Permalink
Fix emoji-induced build breakage
Browse files Browse the repository at this point in the history
* admin/unidata/blocks.awk: Cater for out-of-tree builds, match
the name of the file using regexp rather than exact match.
  • Loading branch information
rpluim committed Sep 17, 2021
1 parent aa59d38 commit 6f2068f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/unidata/blocks.awk
Expand Up @@ -131,7 +131,7 @@ function name2alias(name , w, w2) {
return name
}

FILENAME == "Blocks.txt" && /^[0-9A-F]/ {
FILENAME ~ "Blocks.txt" && /^[0-9A-F]/ {
sep = index($1, "..")
len = length($1)
s = substr($1,1,sep-1)
Expand Down Expand Up @@ -204,10 +204,10 @@ FILENAME == "Blocks.txt" && /^[0-9A-F]/ {

# The space after 'Emoji' is significant in the next two rules.
# This purposely and deliberately excludes codepoints <= 00FF
FILENAME == "emoji-data.txt" && /^00[0-9A-F]{2}.*; Emoji / {
FILENAME ~ "emoji-data.txt" && /^00[0-9A-F]{2}.*; Emoji / {
next
}
FILENAME == "emoji-data.txt" && /^[0-9A-F].*; Emoji / {
FILENAME ~ "emoji-data.txt" && /^[0-9A-F].*; Emoji / {
sep = index($1, "..")
len = length($1)
if (sep > 0) {
Expand Down

0 comments on commit 6f2068f

Please sign in to comment.