From caee9faac16a11c9415d8fab99cef17da18e9cc7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 27 Oct 2017 11:46:19 +0200 Subject: [PATCH] Fix: Make version.h generation work with dash MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit version.h generation failed when using dash as shell: Generating version.h... /bin/sh: 24: Syntax error: Missing '))' dash does not handle the following construct: git_describe="$((cd /path/to/lttng-tools/.; git describe) 2>/dev/null)" Use backquotes instead. The fix has been tested with dash and bash. Signed-off-by: Olivier Blin Signed-off-by: Jérémie Galarneau --- include/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Makefile.am b/include/Makefile.am index 0536dcdf0..3f07f2593 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -21,7 +21,7 @@ version.h: ## ## Check whether we are in a git repo. ## - git_describe="$$($(GIT_DESCRIBE_CMD) 2>/dev/null)"; \ + git_describe="`$(GIT_DESCRIBE_CMD) 2>/dev/null`"; \ if [ $$? -eq 0 ]; then \ git_version="$${git_describe}"; \ else \ -- 2.34.1