diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/fileinfo/readprov.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/fileinfo/readprov.sty | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/fileinfo/readprov.sty b/Master/texmf-dist/tex/latex/fileinfo/readprov.sty index fa229b60dd2..d9bf84252c8 100644 --- a/Master/texmf-dist/tex/latex/fileinfo/readprov.sty +++ b/Master/texmf-dist/tex/latex/fileinfo/readprov.sty @@ -2,7 +2,7 @@ %% -- %% get file infos without reading the entire file -\def \fileversion {0.4} \def \filedate {2012/11/11} +\def \fileversion {0.5} \def \filedate {2012/11/22} %% copyright (C) 2008, 2010, 2011, 2012 Uwe Lueck, %% http://www.contact-ednotes.sty.de.vu @@ -79,7 +79,13 @@ % and only for use with myfilist.sty. % But you can use \ReadFileInfos for reporting on \emph{various} % classes, even in a document! -% +% \\ +% |\ReadShInfos{<list-of-filenames>}| (with extensions)\\ +% is a variant of \ReadFileInfos{<list-of-filenames>} that for each +% <file> in <list-of-filenames> processes +% # \ProvidesFile{<file>}[<info>] +% in <file> (new with v0.5). +% % NOTE: (i)~So far, [TODO] the \Read... commands explained before % do not work after `\begin{document}' % (with rare exceptions, \NeedTeXFormat is one @@ -136,7 +142,7 @@ % `\@pkgextension' and `\@clsextension' are bad % for using `\filename' in the document (`\@onlypreamble'). % \\ -% |\ReadClassInfo{<filename>}| without extension: +% |\ReadClassInfo{<filename>}| without extension (v0.5): \newcommand*{\ReadClassInfo}{% \read@package@infos\LoadClass{cls}} % Before v0.4, the modified ultimate expansion of \@pr@videpackage @@ -173,6 +179,11 @@ \GetFileInfo\@gtempa %% 2010/11/26 } \def\read@no@spaces#1#2\@nil{#1#2} %% 2008/03/23 +% |\ReadShInfos{<list-of-filenames>}| with extensions: +\newcommand*{\ReadShInfos}[1]{% %% 2012/11/22 + {\catcode`\#9 % ignore .sh comment characters + \catcode`\!14 % ignore content of shebang line + \ReadFileInfos{#1}}} \endinput %% VERSION HISTORY @@ -191,3 +202,4 @@ v0.3a 2012/03/16 doc.: grammar fix v0.3b 2012/03/20 typo fix "Of" v0.4 2012/11/10 reimplementation for `filedate' (\@pr@videpackage, \@providefile) +v0.5 2012/11/22 \ReadShInfos |