[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Store a version for build-aux/git-version-gen invoked from confi
From: |
Petr Písař |
Subject: |
[PATCH] Store a version for build-aux/git-version-gen invoked from configure |
Date: |
Wed, 13 Jan 2021 12:27:08 +0100 |
Otherwise VERSION is set to UNKNOWN which propagates into
doc/version.texi and info page.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
.gitignore | 3 ++-
Makefile.am | 15 +++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index ccaa24c..6f46e53 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,7 @@
/src/.deps
+/.version
/doc/stamp-vti
/doc/time.info
/doc/version.texi
@@ -35,4 +36,4 @@
/build-aux
/autom4te.cache
/time-*.tar.gz
-/time-*.tar.xz
\ No newline at end of file
+/time-*.tar.xz
diff --git a/Makefile.am b/Makefile.am
index d550daa..dd6f627 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,6 +30,21 @@ lib_libtime_a_CFLAGS = $(AM_CFLAGS) $(GNULIB_WARN_CFLAGS)
$(WERROR_CFLAGS)
lib_libtime_a_LIBADD += $(LIBOBJS)
lib_libtime_a_DEPENDENCIES += $(LIBOBJS)
+##
+## Store a version for build-aux/git-version-gen invoked from configure.ac
+##
+EXTRA_DIST += \
+ $(top_srcdir)/.version
+
+BUILT_SOURCES += \
+ $(top_srcdir)/.version
+
+$(top_srcdir)/.version:
+ echo $(VERSION) > $@-t && mv $@-t $@
+
+dist-hook:
+ echo $(VERSION) > $(distdir)/.tarball-version
+
##
## GNU Time
##
--
2.26.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Store a version for build-aux/git-version-gen invoked from configure,
Petr Písař <=