]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix emoji-induced build breakage
authorRobert Pluim <rpluim@gmail.com>
Fri, 17 Sep 2021 17:35:27 +0000 (19:35 +0200)
committerRobert Pluim <rpluim@gmail.com>
Fri, 17 Sep 2021 17:35:27 +0000 (19:35 +0200)
* admin/unidata/blocks.awk: Cater for out-of-tree builds, match
the name of the file using regexp rather than exact match.

admin/unidata/blocks.awk

index 72a808ab61c4a9f8100173b80324b8ae5c31deb5..575f7142f4a7725a3d3a1e7b7485115ea2bdd592 100755 (executable)
@@ -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)
@@ -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)  {