aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-12-18 18:15:36 +0100
committerRobert Alessi <alessi@robertalessi.net>2018-12-18 18:15:36 +0100
commit65a9f6a4433f36b8017e6f19b4bb616bf075d6f9 (patch)
tree0d82ea6cf7ff0b8166f0a9f402ff4c29dc3b8098
parent49c2bc685b2a7442b35ccce753eb146f3f0b76ad (diff)
downloadekdosis-65a9f6a4433f36b8017e6f19b4bb616bf075d6f9.tar.gz
added 'local' option to Makefile
-rw-r--r--Makefile14
-rw-r--r--ekdosis.dtx14
-rw-r--r--ekdosis.ins52
3 files changed, 69 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index ebfc1bd..0a148ca 100644
--- a/Makefile
+++ b/Makefile
@@ -7,13 +7,13 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME)
7all: $(NAME).pdf 7all: $(NAME).pdf
8 test -e README.txt && mv README.txt README || exit 0 8 test -e README.txt && mv README.txt README || exit 0
9$(NAME).pdf: $(NAME).dtx 9$(NAME).pdf: $(NAME).dtx
10 lualatex -shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null 10 lualatex --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null
11 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi 11 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
12 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi 12 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
13 lualatex -shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 13 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
14 lualatex -shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 14 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
15clean: 15clean:
16 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out,toc} 16 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc}
17 rm -f *~ 17 rm -f *~
18 rm -rf auto/ 18 rm -rf auto/
19# rm -f $(NAME)_*.{bib,lua} 19# rm -f $(NAME)_*.{bib,lua}
@@ -29,6 +29,11 @@ inst: uninst all
29 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) 29 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME)
30 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) 30 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME)
31 cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) 31 cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME)
32local: uninst
33 lualatex $(NAME).ins
34 mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME)
35 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME)
36 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME)
32#install: all 37#install: all
33# sudo mkdir -p $(LOCAL)/{tex,source,doc}/lualatex/$(NAME) 38# sudo mkdir -p $(LOCAL)/{tex,source,doc}/lualatex/$(NAME)
34# sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME) 39# sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME)
@@ -51,4 +56,3 @@ package: distclean all
51 rm -rf tex/ source/ doc/ 56 rm -rf tex/ source/ doc/
52 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/ 57 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/
53 rm -rf $(NAME)/ 58 rm -rf $(NAME)/
54
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 672b228..3170f41 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -93,6 +93,14 @@ Running "make install" installs the files in the local TeX tree.
93\generate{ 93\generate{
94 \file{\jobname.sty}{\from{\jobname.dtx}{package}} 94 \file{\jobname.sty}{\from{\jobname.dtx}{package}}
95} 95}
96\nopreamble\nopostamble
97\usedir{tex/lualatex/ekdosis}
98\generate{
99 \file{\jobname.lua}{
100 \from{\jobname.dtx}{luapre}
101 \from{\jobname.dtx}{lua}
102 }
103}
96%</install> 104%</install>
97%<install>\endbatchfile 105%<install>\endbatchfile
98%<*internal> 106%<*internal>
@@ -105,12 +113,6 @@ Running "make install" installs the files in the local TeX tree.
105\generate{ 113\generate{
106 \file{README.txt}{\from{\jobname.dtx}{readme}} 114 \file{README.txt}{\from{\jobname.dtx}{readme}}
107} 115}
108\usedir{tex/lualatex/ekdosis}
109\generate{
110 \file{ekdosis.lua}{
111 \from{\jobname.dtx}{luapre}
112 \from{\jobname.dtx}{lua}}
113}
114\ifx\fmtname\nameofplainTeX 116\ifx\fmtname\nameofplainTeX
115 \expandafter\endbatchfile 117 \expandafter\endbatchfile
116\else 118\else
diff --git a/ekdosis.ins b/ekdosis.ins
new file mode 100644
index 0000000..d88fc95
--- /dev/null
+++ b/ekdosis.ins
@@ -0,0 +1,52 @@
1\input docstrip.tex
2\keepsilent
3\askforoverwritefalse
4\preamble
5-------:| -----------------------------------------------------------------
6ekdosis:| Typesetting TEI xml compliant critical editions
7 Author:| Robert Alessi
8 E-mail:| alessi@robertalessi.net
9License:| Released under the GNU General Public License v3 or later
10 See:| http://www.gnu.org/licenses/
11
12This file is part of the `ekdosis' package
13
14ekdosis -- Typesetting TEI xml compliant critical editions
15Copyright (C) 2016 Robert Alessi
16
17Please send error reports and suggestions for improvements to Robert
18Alessi <alessi@robertalessi.net>
19
20This program is free software: you can redistribute it and/or modify
21it under the terms of the GNU General Public License as published by
22the Free Software Foundation, either version 3 of the License, or
23(at your option) any later version.
24
25This program is distributed in the hope that it will be useful, but
26WITHOUT ANY WARRANTY; without even the implied warranty of
27MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28General Public License for more details.
29
30You should have received a copy of the GNU General Public License
31along with this program. If not, see
32<http://www.gnu.org/licenses/>.
33
34This work consists of the file ekdosis.dtx and a Makefile.
35Running "make" generates the derived files README, ekdosis.pdf and ekdosis.sty.
36Running "make inst" installs the files in the user's TeX tree.
37Running "make install" installs the files in the local TeX tree.
38\endpreamble
39
40\usedir{tex/lualatex/ekdosis}
41\generate{
42 \file{\jobname.sty}{\from{\jobname.dtx}{package}}
43}
44\nopreamble\nopostamble
45\usedir{tex/lualatex/ekdosis}
46\generate{
47 \file{\jobname.lua}{
48 \from{\jobname.dtx}{luapre}
49 \from{\jobname.dtx}{lua}
50 }
51}
52\endbatchfile