Fix: Make version.h generation work with dash
authorOlivier Blin <olivier.blin@softathome.com>
Fri, 27 Oct 2017 09:46:19 +0000 (11:46 +0200)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 12 Nov 2017 18:13:26 +0000 (13:13 -0500)
commit1f187b2bc772e8d90c6b78492145b0d0eac1732f
tree102b0b88478c755dd52204b2c430d92bc7581d00
parent5be0a715508bd512e5bf3dd7d5edfcc07e3274aa
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 <olivier.blin@softathome.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/Makefile.am
This page took 0.026097 seconds and 4 git commands to generate.