[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 3dcd648fa6 5/6: make: Re-generate %.texi if H
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 3dcd648fa6 5/6: make: Re-generate %.texi if HEAD changed since previous run |
Date: |
Sun, 18 Aug 2024 17:55:30 -0400 (EDT) |
branch: externals/transient
commit 3dcd648fa67e59ee140b5e00ce06bcf55295351e
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
make: Re-generate %.texi if HEAD changed since previous run
---
.gitignore | 1 +
default.mk | 1 +
docs/Makefile | 6 +++++-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 07644fb0a7..8997981370 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
/docs/*.info
/docs/*.pdf
/docs/*.texi
+/docs/.revdesc
/docs/dir
/docs/stats/
/lisp/*-autoloads.el
diff --git a/default.mk b/default.mk
index 3d23abba75..b753ae26a7 100644
--- a/default.mk
+++ b/default.mk
@@ -14,6 +14,7 @@ DOMAIN ?= magit.vc
CFRONT_DIST ?= E2LUHBKU1FBV02
VERSION ?= $(shell test -e $(TOP).git && git describe --tags --abbrev=0 | cut
-c2-)
+REVDESC := $(shell test -e $(TOP).git && git describe --tags)
EMACS ?= emacs
EMACS_ARGS ?=
diff --git a/docs/Makefile b/docs/Makefile
index f50e192d16..cc8cddefe2 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -18,7 +18,11 @@ redo-docs:
@touch $(PKG).org
@make docs
-%.texi: %.org
+.revdesc: ;
+_ := $(shell test "$(REVDESC)" = "$$(cat .revdesc 2> /dev/null)" ||\
+ echo "$(REVDESC)" > .revdesc)
+
+%.texi: %.org .revdesc
@printf "Generating $@\n"
@$(EMACS) $(ORG_ARGS) $< $(ORG_EVAL)
@sed -i -e 's/“/``/g' -e "s/”/''/g" -e '$$a\' $(PKG).texi #'
- [elpa] externals/transient updated (b2cb4e578f -> f4aac8443c), Jonas Bernoulli, 2024/08/18
- [elpa] externals/transient 3dcd648fa6 5/6: make: Re-generate %.texi if HEAD changed since previous run,
Jonas Bernoulli <=
- [elpa] externals/transient f8a5f7ca50 4/6: make release: Don't pass along $VERSION, Jonas Bernoulli, 2024/08/18
- [elpa] externals/transient f4aac8443c 6/6: No longer track generated transient.texi, Jonas Bernoulli, 2024/08/18
- [elpa] externals/transient 0e35673ef5 1/6: No longer use static-if at top-level, Jonas Bernoulli, 2024/08/18
- [elpa] externals/transient 3915d727f8 2/6: ci: Publish manual for tagged releases, Jonas Bernoulli, 2024/08/18
- [elpa] externals/transient e412e32535 3/6: make: Ensure documentation is cleaned up and regenerated when needed, Jonas Bernoulli, 2024/08/18