From 1cafb3c2000c3f5a25ac6e549d9832e717cc9f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 30 Apr 2009 01:05:19 +0200 Subject: Packaging tune-up. - Makefile with a target for CTAN distribution. - No .drv file, they are useless. - Fixed \usedir directories. --- luaextra.dtx | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'luaextra.dtx') diff --git a/luaextra.dtx b/luaextra.dtx index d08ea10..180a929 100644 --- a/luaextra.dtx +++ b/luaextra.dtx @@ -7,7 +7,10 @@ % This work consists of the main source file luaextra.dtx % and the derived file luaextra.lua. % -% Unpacking and documentation: +% Unpacking: +% tex luatextra.dtx +% +% Documentation: % pdftex luaextra.dtx % % The class ltxdoc loads the configuration file ltxdoc.cfg @@ -19,7 +22,14 @@ % %<*ignore> \begingroup - + \def\x{LaTeX2e}% +\expandafter\endgroup +\ifcase 0\ifx\install y1\fi\expandafter + \ifx\csname processbatchFile\endcsname\relax\else1\fi + \ifx\fmtname\x\else 1\fi\relax +\else\csname fi\endcsname +% +%<*install> \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} @@ -43,12 +53,6 @@ and the derived file luaextra.lua. \endpreamble -\let\MetaPrefix\DoubleperCent - -\generate{% - \file{luaextra.drv}{\from{luaextra.dtx}{driver}}% -} - % The following hacks are to generate a lua file with lua comments starting by -- instead of %% \def\MetaPrefix{-- } @@ -61,7 +65,7 @@ and the derived file luaextra.lua. \def\currentpostamble{\luapostamble}% \generate{% - \usedir{luatex/lua/luaextra}% + \usedir{tex/luatex/luatextra}% \file{luaextra.lua}{\from{luaextra.dtx}{lua}}% } @@ -77,16 +81,15 @@ and the derived file luaextra.lua. \Msg{*} \Msg{************************************************************************} -\endgroup +\endbatchfile +% +%<*ignore> +\fi % -% \iffalse -% -%\NeedsTeXFormat{LaTeX2e} -%\ProvidesPackage{luaextra.sty} -% [2009/04/15 v0.91 Lua additional functions.] -% -% \fi %<*driver> +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{luaextra.drv} + [2009/04/15 v0.91 Lua additional functions.] \documentclass{ltxdoc} \EnableCrossrefs \CodelineIndex -- cgit v1.2.3