diff options
-rw-r--r-- | makefile | 33 | ||||
-rw-r--r-- | oldstandard.tex | 7 |
2 files changed, 26 insertions, 14 deletions
@@ -1,31 +1,42 @@ | |||
1 | pkg := oldstandard | 1 | pkg := oldstandard |
2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') | 2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}') |
3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
4 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
5 | LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts | 5 | LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts |
6 | 6 | ||
7 | doc: local | 7 | doc: local |
8 | lualatex --shell-escape $(pkg).tex | 8 | @echo "Building the documentation. Please wait..." |
9 | biber $(pkg) | 9 | lualatex --shell-escape $(pkg).tex >/dev/null |
10 | lualatex --shell-escape $(pkg).tex | 10 | biber $(pkg) >/dev/null |
11 | lualatex --shell-escape $(pkg).tex | 11 | lualatex --shell-escape $(pkg).tex >/dev/null |
12 | lualatex --shell-escape $(pkg).tex >/dev/null | ||
13 | @echo "Removing OldStandard .otf files from $(LOCALFONTDIR)..." | ||
14 | rm -f $(LOCALFONTDIR)/OldStandard-*.otf | ||
15 | luaotfload-tool --update | ||
16 | @echo "Done." | ||
12 | 17 | ||
13 | all: doc | 18 | all: doc |
14 | 19 | ||
15 | local: clean | 20 | local: |
21 | @rm -f $(LOCALFONTDIR)/OldStandard-*.otf | ||
22 | @echo "Installing latest OldStandard .otf files in $(LOCALFONTDIR)..." | ||
16 | cp otf/OldStandard-*.otf $(LOCALFONTDIR)/ | 23 | cp otf/OldStandard-*.otf $(LOCALFONTDIR)/ |
17 | luaotfload-tool --update | 24 | luaotfload-tool --update |
25 | @echo "Done." | ||
18 | 26 | ||
19 | package: doc | 27 | package: doc |
20 | mkdir $(pkg) | 28 | mkdir $(pkg)-$(ver) |
21 | cp *.{txt,md,tex,pdf} $(pkg) | 29 | cp *.{txt,md,tex,pdf} $(pkg)-$(ver) |
22 | cp otf/*.otf $(pkg) | 30 | cp otf/*.otf $(pkg)-$(ver) |
23 | tar czf $(pkg)-$(ver).tar.gz $(pkg) | 31 | tar czf $(pkg)-$(ver).tar.gz $(pkg)-$(ver) |
32 | @echo "$(pkg)-$(ver).tar.gz has been created." | ||
24 | 33 | ||
25 | clean: | 34 | clean: |
35 | @echo "Removing OldStandard .otf files from $(LOCALFONTDIR)..." | ||
26 | rm -f $(LOCALFONTDIR)/OldStandard-*.otf | 36 | rm -f $(LOCALFONTDIR)/OldStandard-*.otf |
27 | luaotfload-tool --update | 37 | luaotfload-tool --update |
28 | git clean -df | 38 | git clean -df |
29 | pandoc README.md -o about.html | 39 | pandoc README.md -o about.html |
40 | @echo "Done." | ||
30 | 41 | ||
31 | .PHONY: doc all local package clean prepare | 42 | .PHONY: doc all local package clean |
diff --git a/oldstandard.tex b/oldstandard.tex index 722219f..e044288 100644 --- a/oldstandard.tex +++ b/oldstandard.tex | |||
@@ -138,13 +138,14 @@ Version 1.1. This license is available with a FAQ at: | |||
138 | \label{sec:documentation} | 138 | \label{sec:documentation} |
139 | No documentation is associated with this release of \emph{Old | 139 | No documentation is associated with this release of \emph{Old |
140 | Standard} as every item of the original extensive documentation | 140 | Standard} as every item of the original extensive documentation |
141 | applies. The reader should refer to this documentation, edited by Bob | 141 | applies. The reader should refer to the documentation edited for CTAN |
142 | Tennent:\icite{oldstandard} | 142 | by Bob Tennent:\icite{oldstandard} |
143 | \begin{itemize} | 143 | \begin{itemize} |
144 | \item | 144 | \item |
145 | \href{http://mirrors.ctan.org/fonts/oldstandard/doc/oldstand-manual.pdf}% | 145 | \href{http://mirrors.ctan.org/fonts/oldstandard/doc/oldstand-manual.pdf}% |
146 | {Original manual (online version)} | 146 | {Original manual (online version)} |
147 | \item \href{oldstand-manual.pdf}{Original manual (local version)} | 147 | \item \href{oldstand-manual.pdf}{Original manual (local version |
148 | included in {\TeX}Live)} | ||
148 | \end{itemize} | 149 | \end{itemize} |
149 | 150 | ||
150 | \section{History} | 151 | \section{History} |