[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CTAN update
From: |
Arash Esbati |
Subject: |
Re: CTAN update |
Date: |
Tue, 25 Jun 2024 13:04:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Keita,
Ikumi Keita <ikumi@ikumi.que.jp> writes:
> So I hope for our GNUmakefile,
> preview.pdf: latex/preview.drv latex/preview.dtx latex/preview.sty
> cd latex; \
> $(PDFLATEX) '\nonstopmode \input{preview.drv}'; \
> $(PDFLATEX) '\nonstopmode \input{preview.drv}'; \
> $(PDFLATEX) '\nonstopmode \input{preview.drv}'
> would do the job. (I haven't tried actually, though. Maybe we also need
> PDFLATEX=pdflatex
> in GNUmakefile?)
Thanks. I think it needed a little more massaging so I came up with
this:
--8<---------------cut here---------------start------------->8---
diff --git a/GNUmakefile b/GNUmakefile
index 617daea1..c58398ae 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -22,6 +22,7 @@ EMACS=$(EMACSBIN) --batch -q -no-site-file -no-init-file -l
lpath.el
MAKEINFO=makeinfo
INSTALL_INFO=install-info
PERL=perl
+PDFLATEX=pdfla$(TEX)
MANUALS=auctex preview-latex
INFO_FILES=$(MANUALS:=.info)
@@ -82,6 +83,10 @@ elpa: $(MAIN_GENERATED_FILES) ChangeLog
clean:
rm -f $(ALL_GENERATED_FILES) \
$(wildcard *.elc style/*.elc) \
+ $(LATEX_FILES) \
+ $(wildcard latex/*.aux latex/*.drv latex/*.hd latex/*.log) \
+ $(wildcard latex/*.out latex/*.pdf latex/*.tar.gz) \
+ latex/preview-mk.ins latex/preview.ins \
auctex-autoloads.el \
$(DYNVARSFILES)
@@ -137,6 +142,36 @@ $(LATEX_FILES): latex/preview.dtx latex/bootstrap.ins
cd latex; $(TEX) '\nonstopmode \input bootstrap.ins'
cd latex; $(TEX) '\nonstopmode \input preview-mk.ins'
+# The next rules are copied&adapted from Makefile.in and
+# latex/Makefile.in. `preview-ctan' is the rule needed for creating a
+# tarball for CTAN upload.
+preview.ins: latex/preview.dtx
+ cd latex && rm -f $@ && \
+ $(TEX) '\nonstopmode\def\jobname{.ins}\input docstrip ' \
+ '\generate{\file{preview.ins}{\from{preview.dtx}{installer}}}' \
+ '\endbatchfile'
+
+preview-mk.ins: latex/preview.dtx latex/bootstrap.ins
+ cd latex && $(TEX) '\nonstopmode \input bootstrap.ins'
+
+preview.drv: latex/preview.dtx preview-mk.ins
+ cd latex && $(TEX) '\nonstopmode \input preview-mk.ins'
+
+preview.pdf: preview.drv latex/preview.dtx latex/preview.sty
+ cd latex && \
+ $(PDFLATEX) '\nonstopmode \input{preview.drv}' && \
+ $(PDFLATEX) '\nonstopmode \input{preview.drv}' && \
+ $(PDFLATEX) '\nonstopmode \input{preview.drv}'
+
+preview-ctan: preview.ins preview.pdf
+ cd latex && \
+ mkdir -p preview && \
+ cp README preview.dtx preview.ins preview.pdf preview/ && \
+ tar -cz --owner=root --group=root -f preview.tar.gz preview/ && \
+ rm -rf preview/
+
+# Cross-file variable checking with lexical binding
+#
https://www.gnu.org/software/emacs/manual/html_node/elisp/Converting-to-Lexical-Binding.html
DYNVARSFILES = *.dynvars style/*.dynvars auctex-dynvars
dynvars-check:
rm -f $(wildcard *.elc) $(wildcard style/*.elc) $(DYNVARSFILES)
--8<---------------cut here---------------end--------------->8---
Now one can do 'make preview-ctan' and gets a tarball. Ugly is the
suffix part in clean, but it works :-) WDYT?
Best, Arash
- CTAN update (Re: bug#71690: 14.0.5; preview-latex clips bold text with inline equations), Ikumi Keita, 2024/06/22
- Re: CTAN update (Re: bug#71690: 14.0.5; preview-latex clips bold text with inline equations), Arash Esbati, 2024/06/24
- Re: CTAN update (Re: bug#71690: 14.0.5; preview-latex clips bold text with inline equations), Ikumi Keita, 2024/06/24
- Re: CTAN update,
Arash Esbati <=
- Re: CTAN update, Ikumi Keita, 2024/06/25
- Re: CTAN update, Arash Esbati, 2024/06/25
- Re: CTAN update, Ikumi Keita, 2024/06/26
- Re: CTAN update, Arash Esbati, 2024/06/26
- Re: CTAN update, Ikumi Keita, 2024/06/27
- Re: CTAN update, Arash Esbati, 2024/06/27