public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Cygwin: Makefile.am: fix rule to create version from git describe
@ 2023-02-15 14:04 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2023-02-15 14:04 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=be67844f5da8cb6fb4c39cfdb3460e6955660b8e

commit be67844f5da8cb6fb4c39cfdb3460e6955660b8e
Author:     Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Wed Feb 15 15:04:16 2023 +0100
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Wed Feb 15 15:04:16 2023 +0100

    Cygwin: Makefile.am: fix rule to create version from git describe
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index 125358b4b313..c34ca6ddc3b9 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -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 \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-15 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 14:04 [newlib-cygwin/main] Cygwin: Makefile.am: fix rule to create version from git describe Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).