From: Orestis Floros Date: Fri, 22 Mar 2019 13:06:23 +0000 (+0200) Subject: Use git plumbing commands to get the I3_VERSION X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F3659%2Fhead;p=i3%2Fi3 Use git plumbing commands to get the I3_VERSION Fixes #3656 --- diff --git a/configure.ac b/configure.ac index 23d8d878..ec1d9d03 100644 --- a/configure.ac +++ b/configure.ac @@ -32,7 +32,7 @@ AX_EXTEND_SRCDIR AS_IF([test -d ${srcdir}/.git], [ 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/::)\\\")" + I3_VERSION="$(git -C ${srcdir} describe --tags --always) ($(git -C ${srcdir} rev-list --format=%cd --date=short -n1 $(git rev-parse HEAD) | tail -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) ],