]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Build: call tools/version with sh
authorxtex <xtexchooser@duck.com>
Fri, 9 May 2025 11:14:50 +0000 (07:14 -0400)
committerMaria Matejka <mq@ucw.cz>
Sat, 10 May 2025 13:01:37 +0000 (15:01 +0200)
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@duck.com>
Makefile.in

index bbc1ef29da88e15573b29cd0d806b70822f25eb4..96a5b6eba60afd911af5f416efe760416bcb9d14 100644 (file)
@@ -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)"'