/usr/share/texlive/texmf-dist/tex/luatex/luatexbase/luatexbase-modutils.sty is in texlive-luatex 2012.20120611-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | %%
%% This is file `luatexbase-modutils.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% luatexbase-modutils.dtx (with options: `texpackage')
%%
%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux.
%%
%% This work is under the CC0 license.
%% See source file 'luatexbase-modutils.dtx' for details.
%%
\csname lltxb@modutils@loaded\endcsname
\expandafter\let\csname lltxb@modutils@loaded\endcsname\endinput
\begingroup
\catcode123 1 % {
\catcode125 2 % }
\catcode 35 6 % #
\toks0{}%
\def\x{}%
\def\y#1 #2 {%
\toks0\expandafter{\the\toks0 \catcode#1 \the\catcode#1}%
\edef\x{\x \catcode#1 #2}}%
\y 123 1 % {
\y 125 2 % }
\y 35 6 % #
\y 10 12 % ^^J
\y 34 12 % "
\y 36 3 % $ $
\y 39 12 % '
\y 40 12 % (
\y 41 12 % )
\y 42 12 % *
\y 43 12 % +
\y 44 12 % ,
\y 45 12 % -
\y 46 12 % .
\y 47 12 % /
\y 60 12 % <
\y 61 12 % =
\y 64 11 % @ (letter)
\y 62 12 % >
\y 95 12 % _ (other)
\y 96 12 % `
\edef\y#1{\endgroup\edef#1{\the\toks0\relax}\x}%
\expandafter\y\csname lltxb@modutils@AtEnd\endcsname
\begingroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax
\def\x#1[#2]{\immediate\write16{Package: #1 #2}}
\else
\let\x\ProvidesPackage
\fi
\expandafter\endgroup
\x{luatexbase-modutils}[2010/10/10 v0.3 Module utilities for LuaTeX]
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname RequirePackage\endcsname\relax
\input ifluatex.sty
\else
\RequirePackage{ifluatex}
\fi
\ifluatex\else
\begingroup
\expandafter\ifx\csname PackageError\endcsname\relax
\def\x#1#2#3{\begingroup \newlinechar10
\errhelp{#3}\errmessage{Package #1 error: #2}\endgroup}
\else
\let\x\PackageError
\fi
\expandafter\endgroup
\x{luatexbase-attr}{LuaTeX is required for this package. Aborting.}{%
This package can only be used with the LuaTeX engine^^J%
(command `lualatex' or `luatex').^^J%
Package loading has been stopped to prevent additional errors.}
\lltxb@modutils@AtEnd
\expandafter\endinput
\fi
\ifdefined\RequirePackage
\RequirePackage{luatexbase-loader}
\else
\input luatexbase-loader.sty
\fi
\luatexbase@directlua{require('luatexbase.modutils')}
\luatexbase@ensure@primitive{luaescapestring}
\ifdefined\kernel@ifnextchar
\let\lltxb@ifnextchar\kernel@ifnextchar
\else
\chardef\lltxb@zero0
\chardef\lltxb@two2
\long\def\lltxb@ifnextchar#1#2#3{%
\begingroup
\let\lltxb@CharToken= #1\relax
\toks\lltxb@zero{#2}%
\toks\lltxb@two{#3}%
\futurelet\lltxb@LetToken\lltxb@ifnextchar@
}
\def\lltxb@ifnextchar@{%
\ifx\lltxb@LetToken\lltxb@CharToken
\expandafter\endgroup\the\toks\expandafter\lltxb@zero
\else
\ifx\lltxb@LetToken\lltxb@SpaceToken
\expandafter\expandafter\expandafter\lltxb@@ifnextchar
\else
\expandafter\endgroup\the\toks
\expandafter\expandafter\expandafter\lltxb@two
\fi
\fi
}
\begingroup
\def\x#1{\endgroup
\def\lltxb@@ifnextchar#1{%
\futurelet\lltxb@LetToken\lltxb@ifnextchar@
}%
}%
\x{ }
\begingroup
\def\x#1{\endgroup
\let\lltxb@SpaceToken= #1%
}%
\x{ }
\fi
\def\RequireLuaModule#1{%
\lltxb@ifnextchar[{\lltxb@requirelua{#1}}{\lltxb@requirelua{#1}[]}}
\def\lltxb@requirelua#1[#2]{%
\luatexbase@directlua{luatexbase.require_module(
"\luatexluaescapestring{#1}"
\expandafter\ifx\expandafter\/\detokenize{#2}\/\else
, "\luatexluaescapestring{#2}"
\fi)}}
\lltxb@modutils@AtEnd
\endinput
%%
%% End of file `luatexbase-modutils.sty'.
|