emacs-elpa-diffs
[Top][All Lists]
Advanced

[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 #'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]