summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
-rw-r--r--luatexbase.dtx17
2 files changed, 25 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8c82909..3e56d17 100644
--- a/Makefile
+++ b/Makefile
@@ -21,10 +21,10 @@ UNPACKED_MODUTILS = luatexbase-modutils.sty modutils.lua test-modutils.lua \
test-modutils-plain.tex test-modutils-latex.tex
UNPACKED_COMPAT = luatexbase-compat.sty \
test-compat-plain.tex test-compat-latex.tex
-UNPACKED_CORE = luatexbase.sty
+UNPACKED_BASE = luatexbase.sty test-base-plain.tex test-base-latex.tex
UNPACKED = $(UNPACKED_MCB) $(UNPACKED_REGS) $(UNPACKED_ATTR) $(UNPACKED_CCTB) \
$(UNPACKED_LOADER) $(UNPACKED_MODUTILS) $(UNPACKED_COMPAT) \
- $(UNPACKED_CORE)
+ $(UNPACKED_BASE)
COMPILED = $(DOC)
GENERATED = $(COMPILED) $(UNPACKED)
SOURCE = $(DTX) $(DTXSTY) README TODO Changes Makefile
@@ -66,7 +66,7 @@ DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) >/dev/null 2>&1
# Main targets definition
all: $(GENERATED)
check: check-regs check-attr check-cctb check-loader check-modutils check-mcb \
- check-compat
+ check-compat check-base
doc: $(COMPILED)
unpack: $(UNPACKED)
ctan: check $(CTAN_ZIP)
@@ -103,7 +103,7 @@ $(UNPACKED_MODUTILS): luatexbase-modutils.dtx
$(UNPACKED_COMPAT): luatexbase-compat.dtx
$(DO_TEX)
-$(UNPACKED_CORE): luatexbase.dtx
+$(UNPACKED_BASE): luatexbase.dtx
$(DO_TEX)
check-regs: $(UNPACKED_REGS)
@@ -135,6 +135,10 @@ check-compat: $(UNPACKED_COMPAT)
luatex --interaction=batchmode test-compat-plain.tex >/dev/null
lualatex --interaction=batchmode test-compat-latex.tex >/dev/null
+check-base: $(UNPACKED_BASE)
+ luatex --interaction=batchmode test-base-plain.tex >/dev/null
+ lualatex --interaction=batchmode test-base-latex.tex >/dev/null
+
$(CTAN_ZIP): $(SOURCE) $(COMPILED) $(TDS_ZIP)
@echo "Making $@ for CTAN upload."
@$(RM) -- $@
diff --git a/luatexbase.dtx b/luatexbase.dtx
index 991e137..3e14f4c 100644
--- a/luatexbase.dtx
+++ b/luatexbase.dtx
@@ -44,6 +44,12 @@ See source file '\inFileName' for details.
\file{luatexbase.sty}{\from{luatexbase.dtx}{texpackage}}%
}
+\generate{%
+ \usedir{doc/luatex/luatexbase}%
+ \file{test-base-plain.tex}{\from{luatexbase.dtx}{testplain}}%
+ \file{test-base-latex.tex}{\from{luatexbase.dtx}{testlatex}}%
+}
+
\obeyspaces
\Msg{************************************************************************}
\Msg{*}
@@ -253,6 +259,17 @@ See source file '\inFileName' for details.
%</texpackage>
% \end{macrocode}
%
+% \section{Test file}
+%
+% Very minimal, just check that the package correctly loads.
+%
+% \begin{macrocode}
+%<testplain>\input luatexbase.sty
+%<testlatex>\RequirePackage{luatexbase}
+%<testplain>\bye
+%<testlatex>\stop
+% \end{macrocode}
+%
%
% \Finale
\endinput