Cygwin: Makefile.am: fix rule to create version from git describe

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-02-15 15:04:16 +01:00
parent 65446dd4f0
commit be67844f5d
1 changed files with 2 additions and 1 deletions

View File

@ -430,7 +430,8 @@ uname_version.c: .FORCE
$(AM_V_GEN)cd $(srcdir) && \
echo "const char *uname_dev_version = \
\"$$(git rev-parse --git-dir >/dev/null 2>&1 && \
git describe --dirty | sed -e 's/cygwin-//')\";" \
git describe --abbrev=12 --long --match 'cygwin*' --dirty | \
sed -e 's/cygwin-//')\";" \
> $(abs_builddir)/uname_version-pre.c && \
if [ -f $(abs_builddir)/uname_version.c ] && \
cmp $(abs_builddir)/uname_version.c \