emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error when compiling refcards (emacs-25 branch)


From: Sébastien Le Callonnec
Subject: Re: Error when compiling refcards (emacs-25 branch)
Date: Fri, 02 Dec 2016 17:55:36 +0000
User-agent: mu4e 0.9.17; emacs 26.0.50.1

Hi Nicolas,

On 2016-11-29 19:54:26, Nicolas Petton wrote:

> I'll try that, thanks.

Have you tried calling the `mex` command directly, as per the following
patch?

Regards,
Sébastien.

>From cb54180b02e34fde0edf6c9d37c5fe27b6f47c75 Mon Sep 17 00:00:00 2001
From: Sebastien Le Callonnec <address@hidden>
Date: Fri, 2 Dec 2016 17:46:38 +0000
Subject: [PATCH] Fix pl-refcard compilation

* etc/refcards/Makefile: Use mex command directly.
* etc/refcards/pl-refcard.tex: Double forward-slash in filename for
  Mex.
---
 etc/refcards/Makefile       | 8 ++++----
 etc/refcards/pl-refcard.tex | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/etc/refcards/Makefile b/etc/refcards/Makefile
index 20057cb4b1..38f7dd30f0 100644
--- a/etc/refcards/Makefile
+++ b/etc/refcards/Makefile
@@ -227,16 +227,16 @@ orgcard.ps: orgcard.dvi
 pl_refcard_deps = pl-refcard.tex emacsver.tex pdflayout.sty
 ## Some versions of pdfmex seem to create dvi by default, hence output-format.
 pl-refcard.pdf: $(pl_refcard_deps)
-       if ! kpsewhich -format=fmt mex > /dev/null && \
+       if ! mex --version > /dev/null && \
          ! pdfmex --version > /dev/null 2> /dev/null; then \
          echo "No mex format found."; false; \
        fi
-       $(ENVADD) pdftex -output-format=pdf pl-refcard.tex
+       $(ENVADD) pdfmex -output-format=pdf pl-refcard.tex
 pl-refcard.dvi: $(pl_refcard_deps)
-       if ! kpsewhich -format=fmt mex > /dev/null; then \
+       if ! mex --version > /dev/null; then \
          echo "No mex format found."; false; \
        fi
-       $(ENVADD) tex pl-refcard.tex
+       $(ENVADD) mex pl-refcard.tex
 pl-refcard.ps: pl-refcard.dvi
        dvips -t a4 -o $@ pl-refcard.dvi

diff --git a/etc/refcards/pl-refcard.tex b/etc/refcards/pl-refcard.tex
index df370d4b50..788bb2abea 100644
--- a/etc/refcards/pl-refcard.tex
+++ b/etc/refcards/pl-refcard.tex
@@ -90,7 +90,7 @@

 Released under the terms of the GNU General Public License version 3 or later.

-\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
+\TeX{} source for this card is distributed with Emacs in {\tt etc//refcards//}

 For copies of the GNU Emacs manual, see:

--
2.11.0



reply via email to

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