summaryrefslogtreecommitdiff
path: root/luaextra.dtx
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-04-30 01:05:19 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-04-30 01:05:19 +0200
commit1cafb3c2000c3f5a25ac6e549d9832e717cc9f13 (patch)
tree5d3c32d6656f4c3aa90c9947c115887d441003f1 /luaextra.dtx
parent6f6db8f9c132455fab3c7f4478590246f34312f9 (diff)
downloadlualibs-1cafb3c2000c3f5a25ac6e549d9832e717cc9f13.tar.gz
Packaging tune-up.
- Makefile with a target for CTAN distribution. - No .drv file, they are useless. - Fixed \usedir directories.
Diffstat (limited to 'luaextra.dtx')
-rw-r--r--luaextra.dtx37
1 files changed, 20 insertions, 17 deletions
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
+%</ignore>
+%<*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
+%</install>
+%<*ignore>
+\fi
%</ignore>
-% \iffalse
-%<driver>
-%<driver>\NeedsTeXFormat{LaTeX2e}
-%<driver>\ProvidesPackage{luaextra.sty}
-%<driver> [2009/04/15 v0.91 Lua additional functions.]
-%<driver>
-% \fi
%<*driver>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesFile{luaextra.drv}
+ [2009/04/15 v0.91 Lua additional functions.]
\documentclass{ltxdoc}
\EnableCrossrefs
\CodelineIndex