]> git.eshelyaron.com Git - emacs.git/commitdiff
Escape braces in regexp in make-info-dir
authorRobert Pluim <rpluim@gmail.com>
Thu, 17 Aug 2023 10:15:44 +0000 (12:15 +0200)
committerRobert Pluim <rpluim@gmail.com>
Thu, 17 Aug 2023 10:21:46 +0000 (12:21 +0200)
This fixes a build failure on Alpine Linux.

* build-aux/make-info-dir (detexinfo): Escape the braces, since some
awk variants (such as BusyBox's) don't like regexp interval
specifications that aren't numbers.  Bug#65323

build-aux/make-info-dir

index 3490b7a31f9eb4c64f9e01a1fe79f7cbff988a0b..64cf2d43f16bd360705190d79694b48745fe9d63 100755 (executable)
@@ -38,7 +38,7 @@ shift
 
 exec "${AWK-awk}" '
   function detexinfo() {
-    gsub(/@value{emacsname}/, "Emacs")
+    gsub(/@value\{emacsname\}/, "Emacs")
     gsub(/@[^{]*\{/, "")
     gsub(/}/, "")
   }