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.11.0-rc1~446 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=e822af72904352465fe4da8136674ebc6b54a6e1 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 24cbf09d8..7de634b8e 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 \