[PATCH] Build: call tools/version with sh

xtexchooser at duck.com xtexchooser at duck.com
Fri May 9 13:14:50 CEST 2025


From: xtex <xtexchooser at duck.com>

As tools/version has a shebang line, it should be
fine to just call it without specifying bash.

Calling bash explicitly may lead to inconsistency,
as the first line of tools/version indicates /usr/bin/sh
but the script is always executed with bash.
And, it adds bash as a new build dependency.

Signed-off-by: xtex <xtexchooser at duck.com>
---
Please apply this to both 2.x and 3.x. Thank you!
---
 Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index bbc1ef29da88..96a5b6eba60a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -44,7 +44,7 @@ exedir := @exedir@
 
 # Find out which version we are actually building
 # This is rewritten by the release tools by hardcoded version
-VERSION := $(strip $(shell bash $(srcdir)/tools/version))
+VERSION := $(strip $(shell $(srcdir)/tools/version))
 
 CFLAGS += -DBIRD_VERSION='"$(VERSION)"'
 

base-commit: 7ef70b27ef907bba7479989a5376842c893b12bb
-- 
2.49.0



More information about the Bird-users mailing list