From c35ba490c8f357ac524884bef2b19e0abf8144af Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 21 May 2026 23:31:45 +0900 Subject: [PATCH] Build: avoid awk warning in version extraction --- src/Main/Main.make | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/Main.make b/src/Main/Main.make index b73a1cb1..c0463dbf 100755 --- a/src/Main/Main.make +++ b/src/Main/Main.make @@ -106,7 +106,8 @@ FUSE_LIBS = $(shell $(PKG_CONFIG) $(VC_FUSE_PACKAGE) --libs) #------ Executable ------ -export TC_VERSION := $(shell awk -F '"' '/^[[:space:]]*\#define[[:space:]]+VERSION_STRING[[:space:]]*"/ { print $$2; exit }' ../Common/Tcdefs.h) +HASH_CHAR := \# +export TC_VERSION := $(shell awk -F '"' '/^[[:space:]]*$(HASH_CHAR)define[[:space:]]+VERSION_STRING[[:space:]]*"/ { print $$2; exit }' ../Common/Tcdefs.h) #------ Linux package naming ------ ifeq "$(PLATFORM)" "Linux"