blob: ea66d88de1bedd486350a6b204316f30c2cc5551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
From 0c4fe2c1e5464d2f2a7b886313f887907e90d114 Mon Sep 17 00:00:00 2001
From: Rob Browning <rlb@defaultvalue.org>
Date: Fri, 15 Jul 2022 14:45:11 -0500
Subject: Build org.info from org.org without emacs source tree
---
doc/misc/Makefile.in | 4 ++--
doc/misc/org-setup.org | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
index 378bb82a072..4beec27b143 100644
--- a/doc/misc/Makefile.in
+++ b/doc/misc/Makefile.in
@@ -225,7 +225,7 @@ abs_top_builddir =
# Prevent any settings in the user environment causing problems.
unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH
-EMACS = ${abs_top_builddir}/src/emacs
+EMACS = /usr/bin/emacs
emacs = "${EMACS}" -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)'
# Generated .texi files go in srcdir so they can be included in the
@@ -233,7 +233,7 @@ emacs =
# Work in srcdir (and use abs_top_builddir) so that +setupfile and
# things like org-setup's "version" macro work. Sigh.
define org_template
- $(1:.org=.texi): $(1) ${top_srcdir}/lisp/org/ox-texinfo.el
+ $(1:.org=.texi): $(1)
$${AM_V_GEN}cd "$${srcdir}" && $${emacs} -l ox-texinfo \
--eval '(setq gc-cons-threshold 50000000)' \
-f org-texinfo-export-to-texinfo-batch $$(notdir $$<) $$(notdir $$@)
diff --git a/doc/misc/org-setup.org b/doc/misc/org-setup.org
index e6ace716077..999571e755e 100644
--- a/doc/misc/org-setup.org
+++ b/doc/misc/org-setup.org
@@ -45,7 +45,7 @@
# returns major.minor version number. This is sufficient since bugfix
# releases are not expected to add features and therefore imply manual
# modifications.
-#+macro: version (eval (with-current-buffer (find-file-noselect "../../lisp/org/org.el") (org-with-point-at 1 (if (re-search-forward "Version: +\\([0-9.]+\\)" nil t) (mapconcat #'identity (cl-subseq (split-string (match-string-no-properties 1) "\\.") 0 2) ".") (error "Missing \"Version\" keyword in \"org.el\"")))))
+#+macro: version (eval (let ((v (getenv "DEB_EMACS_BUILD_ORG_DOC_VERSION"))) (if v v (error "DEB_EMACS_BUILD_ORG_DOC_VERSION is unset"))))
# The "kbd" macro turns KBD into @kbd{KBD}. Additionally, it
# encloses case-sensitive special keys (SPC, RET...) within @key{...}.
|