From 65da87ef9393c8b1d5da8f3c844ff00d24212dd9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 5 Nov 2010 21:44:23 +0000 Subject: luatexbase (4nov10) git-svn-id: svn://tug.org/texlive/trunk@20327 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/source/luatex/luatexbase/Makefile | 24 ++++++++++++---------- .../source/luatex/luatexbase/luatexbase-mcb.dtx | 24 +++++++++++++--------- .../source/luatex/luatexbase/luatexbase.dtx | 19 +++++++++++++++-- 3 files changed, 44 insertions(+), 23 deletions(-) (limited to 'Master/texmf-dist/source/luatex') diff --git a/Master/texmf-dist/source/luatex/luatexbase/Makefile b/Master/texmf-dist/source/luatex/luatexbase/Makefile index 8c82909d79f..0b854b07500 100644 --- a/Master/texmf-dist/source/luatex/luatexbase/Makefile +++ b/Master/texmf-dist/source/luatex/luatexbase/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 @@ -60,13 +60,12 @@ TDS_ZIP = $(NAME).tds.zip ZIPS = $(CTAN_ZIP) $(TDS_ZIP) DO_TEX = tex --interaction=batchmode $< >/dev/null -DO_PDFLATEX = pdflatex --interaction=batchmode $< >/dev/null -DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) >/dev/null 2>&1 +DO_LATEXMK = latexmk -silent $< >/dev/null # 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) @@ -74,10 +73,7 @@ tds: $(TDS_ZIP) Makefile world: all ctan %.pdf: %.dtx $(DTXSTY) - $(DO_PDFLATEX) - $(DO_MAKEINDEX) || true - $(DO_PDFLATEX) - $(DO_PDFLATEX) + $(DO_LATEXMK) luatexbase.%.lua: %.lua ln -sf $< $@ @@ -103,7 +99,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 +131,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) -- $@ @@ -169,7 +169,9 @@ manifest: @for f in $(GENERATED); do echo $$f; done clean: - @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.out test-*.pdf + @latexmk -silent -c *.dtx >/dev/null + @# for tex-only runs + @$(RM) -- *.log mrproper: clean @$(RM) -- $(GENERATED) $(ZIPS) $(TMP_LOADER) diff --git a/Master/texmf-dist/source/luatex/luatexbase/luatexbase-mcb.dtx b/Master/texmf-dist/source/luatex/luatexbase/luatexbase-mcb.dtx index 86a4788d2be..09c8c1c53dd 100644 --- a/Master/texmf-dist/source/luatex/luatexbase/luatexbase-mcb.dtx +++ b/Master/texmf-dist/source/luatex/luatexbase/luatexbase-mcb.dtx @@ -122,12 +122,12 @@ See source file '\inFileName' for details. % \maketitle % % \begin{abstract} -% This package manages the callback adding and removing, by adding -% \texttt{callback.add} and \texttt{callback.remove}, and overwriting -% \texttt{callback.register}. It also allows to create and call new callbacks. -% For an introduction on this package (among others), please refer to the -% document \texttt{luatextra-reference.pdf}. -% \par\textbf{Warning.} Currently assumes that \textsf{luatexbase-modutils} +% This package manages the callback adding and removing, by providing new +% functions and overwriting \texttt{callback.register}. It also allows to +% create and call new callbacks.\par +% The user part of this documentation is currently very incomplete, and will +% be expanded later. Sorry for this and thanks for your patience.\par +% \textbf{Warning.} Currently assumes that \textsf{luatexbase-modutils} % has been previously loaded. (This is a temporary limitation.) % \end{abstract} % @@ -147,18 +147,22 @@ See source file '\inFileName' for details. % impossible with them to be compatible with each other. % % This package solves this problem by adding mainly one new function -% \texttt{callback.\\add} that adds a function in a callback. With this -% function it is possible for packages to register their function in a -% callback without overwriting the functions of the other packages. +% \verb+luatexbase.add_to_callback+ that adds a function in a callback. With +% this function it is possible for packages to register their function in a +% callback without overwriting the functions of the other packages. There are +% also functions to remove one or all functions from a callback. +% See comments in the implementation section for details. % % The functions are called in a certain order, and when a package registers a % callback it can assign a priority to its function. Conflicts can still % remain even with the priority mechanism, for example in the case where two % packages want to have the highest priority. In these cases the packages have % to solve the conflicts themselves. +% See comments in the implementation section for details. % % This package also privides a way to create and call new callbacks, in % addition to the default Lua\TeX\ callbacks. +% See comments in the implementation section for details. % % \subsubsection*{Limitations} % @@ -787,7 +791,7 @@ end % \begin{macrocode} callback.register = function () err("function callback.register has been deleted by luamcallbacks, " -.."please use callback.add instead.") +.."please use luatexbase.add_to_callback instead.") end % \end{macrocode} % diff --git a/Master/texmf-dist/source/luatex/luatexbase/luatexbase.dtx b/Master/texmf-dist/source/luatex/luatexbase/luatexbase.dtx index f2859128497..3e14f4cf1f4 100644 --- a/Master/texmf-dist/source/luatex/luatexbase/luatexbase.dtx +++ b/Master/texmf-dist/source/luatex/luatexbase/luatexbase.dtx @@ -30,8 +30,6 @@ \keepsilent \askforoverwritefalse -\let\MetaPrefix\relax - \preamble Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. @@ -46,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{*} @@ -255,6 +259,17 @@ See source file '\inFileName' for details. % % \end{macrocode} % +% \section{Test file} +% +% Very minimal, just check that the package correctly loads. +% +% \begin{macrocode} +%\input luatexbase.sty +%\RequirePackage{luatexbase} +%\bye +%\stop +% \end{macrocode} +% % % \Finale \endinput -- cgit v1.2.3