From fdb25dbd5a4ee9cb499cc0d61a85778368f46305 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Sun, 28 Mar 2010 01:27:14 +0100
Subject: Adujst docstrip preamble.

---
 luatexbase-cctb.dtx | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

(limited to 'luatexbase-cctb.dtx')

diff --git a/luatexbase-cctb.dtx b/luatexbase-cctb.dtx
index 729faf0..435bc0d 100644
--- a/luatexbase-cctb.dtx
+++ b/luatexbase-cctb.dtx
@@ -34,18 +34,11 @@
 \let\MetaPrefix\relax
 
 \preamble
-This is a generated file.
 
-Written in 2009, 2010 by Manuel Pégourié-Gonnard and Élie Roux.
-    <mpg@elzevir.fr>
-    <elie.roux@telecom-bretagne.eu>
+Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux.
 
 This work is under the CC0 license.
-
-This work consists of the main source file luatexbase-cctb.dtx
-and the derived files
-   luatexbase-cctb.sty luatexbase.cctb.lua
-   test-cctb-plain.tex test-cctb-latex.tex
+See source file '\inFileName' for details.
 
 \endpreamble
 
@@ -82,7 +75,7 @@ and the derived files
 \Msg{* To finish the installation you have to move the following}
 \Msg{* files into a directory searched by TeX:}
 \Msg{*}
-\Msg{*     luatexbase-cctb.sty cctb.lua ...}
+\Msg{*     luatexbase-cctb.sty luatexbase.cctb.lua}
 \Msg{*}
 \Msg{* Happy TeXing!}
 \Msg{*}
@@ -254,7 +247,13 @@ and the derived files
 %    Load the supporting Lua module.
 %
 %    \begin{macrocode}
-\directlua{dofile(kpse.find_file('luatexbase.cctb.lua', 'lua'))}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname RequirePackage\endcsname\relax
+  \input luatexbase-loader.sty
+\else
+  \RequirePackage{luatexbase-loader}
+\fi
+\directlua{require('luatexbase.cctb.lua')}
 %    \end{macrocode}
 %
 %    The allocation macro. Allocate tables starting with 1, since table 0 is
-- 
cgit v1.2.3

