From: Olivier Blin Date: Fri, 27 Oct 2017 09:46:19 +0000 (+0200) Subject: Fix: Make version.h generation work with dash X-Git-Tag: v2.9.7~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=caee9faac16a11c9415d8fab99cef17da18e9cc7;p=lttng-tools.git Fix: Make version.h generation work with dash 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 --- 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 \