From 063fe6f35d124c10fb10bfd7ff8bbd8b3e92d783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=B6ller?= Date: Wed, 21 Oct 2026 11:26:07 +0200 Subject: [PATCH] Fix sed command to escape hash in LANGUAGES assignment Updated sed expression to escape hash character for compatibility across versions of GNU make. --- docs/src/Submakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/Submakefile b/docs/src/Submakefile index 775150a24df..ff0e7cbedfe 100644 --- a/docs/src/Submakefile +++ b/docs/src/Submakefile @@ -71,7 +71,8 @@ ASCIIDOCTOR_DEFAULT_CSS := $(shell ruby -e 'require "asciidoctor"; print Asciido # The following line determines for the Makefile what languages should be addressed. # Edit the file po4a.cfg in this source tree to adjust. -LANGUAGES := $(strip $(shell sed -e's/#.*//' < $(DOC_DIR)/po4a.cfg | grep '^\[po4a_langs\]' | cut -d" " -f2-)) +# The escape of the hash in the sed expression prevents an interpretation as a comment by some versions of GNU make. +LANGUAGES := $(strip $(shell sed -e's/\#.*//' < $(DOC_DIR)/po4a.cfg | grep '^\[po4a_langs\]' | cut -d" " -f2-)) LANGUAGES_MATCH := $(shell echo $(LANGUAGES) | tr " " "|") # Native switcher labels read from docs/src/lang-labels (tagname);