From: Nathan Schulte Date: Tue, 10 Jan 2017 00:47:16 +0000 (-0600) Subject: properly detect version when building out of tree X-Git-Tag: 4.14~75^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cb5df42d2bab6a5bbce5073efd458de147233a7;p=i3%2Fi3 properly detect version when building out of tree --- diff --git a/configure.ac b/configure.ac index c0f3258d..9d4b2f40 100644 --- a/configure.ac +++ b/configure.ac @@ -31,8 +31,8 @@ AX_EXTEND_SRCDIR AS_IF([test -d ${srcdir}/.git], [ - VERSION="$(git describe --tags --abbrev=0)" - I3_VERSION="$(git describe --tags --always) ($(git log --pretty=format:%cd --date=short -n1), branch \\\"$(git describe --tags --always --all | sed s:heads/::)\\\")" + VERSION="$(git -C ${srcdir} describe --tags --abbrev=0)" + I3_VERSION="$(git -C ${srcdir} describe --tags --always) ($(git -C ${srcdir} log --pretty=format:%cd --date=short -n1), branch \\\"$(git -C ${srcdir} describe --tags --always --all | sed s:heads/::)\\\")" # Mirrors what libi3/is_debug_build.c does: is_release=$(test $(echo "${I3_VERSION}" | cut -d '(' -f 1 | wc -m) -lt 10 && echo yes || echo no) ],