diff options
| author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-04-14 09:45:11 +0200 |
|---|---|---|
| committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-04-19 16:45:41 +0200 |
| commit | ba52975ea91af49e8e6a436438a578589a209ecc (patch) | |
| tree | 32c097f16c0f50de8a7cb57c7bbc8c5bf25d272e /doc/local.mk | |
| parent | 2a622090fad2b65922669340b77bf470a4111da4 (diff) | |
Revert "maint: Generate 'doc/version.texi' reproducibly."
Using `build-aux/mdate-from-git.scm' makes this no longer necessary.
This reverts commit e73ea7bd64f64709c71f89dfb111cf3e8ada3771.
Change-Id: I29d1e36b13d255e5a65b7348e7ae4f2b2c24a518
Diffstat (limited to 'doc/local.mk')
| -rw-r--r-- | doc/local.mk | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/doc/local.mk b/doc/local.mk index 77d48902b65..1d94e3c7583 100644 --- a/doc/local.mk +++ b/doc/local.mk | |||
| @@ -260,32 +260,6 @@ endif | |||
| 260 | 260 | ||
| 261 | # Reproducible tarball | 261 | # Reproducible tarball |
| 262 | 262 | ||
| 263 | # Generate 'version.texi' reproducibly using metadata from Git rather than | ||
| 264 | # using metadata from the filesystem. This is expected to generate warnings: | ||
| 265 | # | ||
| 266 | # Makefile:7376: warning: overriding recipe for target 'doc/stamp-vti' | ||
| 267 | # Makefile:5098: warning: ignoring old recipe for target 'doc/stamp-vti' | ||
| 268 | $(srcdir)/doc/stamp-vti: $(srcdir)/doc/guix.texi $(top_srcdir)/configure | ||
| 269 | $$(AM_V_GEN)set -e; \ | ||
| 270 | export LANG=C LANGUAGE=C LC_ALL=C LC_TIME=C; \ | ||
| 271 | export TZ=UTC0; \ | ||
| 272 | timestamp=$$(git log --pretty=format:%ct -n1 -- $< 2>/dev/null \ | ||
| 273 | || echo $(SOURCE_DATE_EPOCH)) \ | ||
| 274 | dmy=$$(date --date="@$$timestamp" "+%-d %B %Y"); \ | ||
| 275 | my=$$(date --date="@$$timestamp" "+%B %Y"); \ | ||
| 276 | { echo "@set UPDATED $$dmy"; \ | ||
| 277 | echo "@set UPDATED-MONTH $$my"; \ | ||
| 278 | echo "@set EDITION $(VERSION)"; \ | ||
| 279 | echo "@set VERSION $(VERSION)"; } > $@-t; \ | ||
| 280 | mv $@-t $@; \ | ||
| 281 | cp $@ $(srcdir)/doc/version.texi | ||
| 282 | |||
| 283 | i:=0 | ||
| 284 | $(eval $(call version.texi-from-git,vti,doc/guix.texi,)) | ||
| 285 | $(foreach lang, $(MANUAL_LANGUAGES), \ | ||
| 286 | $(eval i=$(shell echo $$(($(i)+1)))) \ | ||
| 287 | $(eval $(call version.texi-from-git,$(i),po/doc/guix-manual.$(lang).po,-$(lang)))) | ||
| 288 | |||
| 289 | DIST_CONFIGURE_FLAGS = \ | 263 | DIST_CONFIGURE_FLAGS = \ |
| 290 | --localstatedir=/var \ | 264 | --localstatedir=/var \ |
| 291 | --sysconfdir=/etc | 265 | --sysconfdir=/etc |
