\ProvidesFile{readprov.tex}[2012/11/22 documenting readprov.sty]
% \ProvidesFile{readprov.tex}[2012/03/18 documenting readprov.sty]
% \ProvidesFile{readprov.tex}[2011/01/29 documenting readprov.sty]

\title{\textsf{readprov}\\---\\Get File Info without Loading%
%        \GetFileInfo{readprov.sty}%
%        \ReadFileInfos{readprov.sty}%  %% \NeedsTeXFormat
       \thanks{% 
       This file describes
%        \protect\GetFileInfo{readprov.sty}%    %% FAILS!
       version 
%        \textbf{\fileversion} of \textsf{\filename} as of \filedate.}%
       \textcolor{blue}{\UseVersionOf{readprov.sty}} 
       of \textsf{readprov.sty} as of \UseDateOf{readprov.sty}.}%
}      %% <- TODO macro in makedoc.cfg
% \listfiles

%% Preprocessing:
\RequirePackage{makedoc}
\CopyFDconditionFromTo{PScomment}{comment}
\MainDocParser{\ProcessInputWith{PScomment}}
%% Replacements:
\StartPrependingChain
\SetPatternCodes{\MakeOther\\\MakeOther\ } %% CARE!
% \PrependExpandableAllReplacer{tex}{ .tex}{ `.tex'}
\renewcommand*{\do}{\PrependExpandableAllReplacer}  %% 2012/11/22
\do{sty}{ .sty}{ `.sty'}
\do{cls}{.cls}{`.cls'}
\do{etc}{etc. }{etc.\ }
% \PrependExpandableAllReplacer{etc...}{etc. ...}{etc.\ $\dots$}
\SetPatternCodes{\MakeOther\\}             %% less care needed 
\do{LaTeX}{LaTeX}{\LaTeX}
\do{xpbl}{expandable}{\emph{expandable}}
\do{rob}{robust}{\emph{robust}}
\do{frag}{fragile}{\emph{fragile}}
\do{doc}{doc.sty}{'doc.sty'}
\do{myfilist}{myfilist.sty}{'myfilist.sty'}
\do{readprov}{readprov.sty}{'readprov.sty'}
% \do{provf}{\ProvidesFile}{`\ProvidesFile'}    %% rm. 2012/11/22
\do{NOTE}{NOTE:}{\paragraph{Note:}} 
% \PrependExpandableAllReplacer{Note}{Note:}{\emph{Note:} } 
\do{prov}{provided}{\emph{provided}} 
\do{*fail*}{*fail*}{\emph{fail}} 
\do{INSTALL}{INSTALL:}{\section{Installation}} 
\do{USAGE}{USAGE:}{\section{Usage}} 
\do{IMPLEM}{IMPLEMENTATION:}{\section{Implementation}} 
\do{LOAD}{LOADING:}{\paragraph{Loading:}} 
\do{INS}{INSERTING:}{\paragraph{Inserting:}} 
\do{READ}{EXTRACTING:}{\paragraph{Extracting:}} 
\do{TODO}{TODO}{\textcolor{blue}{TODO}} 
\SetPatternCodes{\MakeOther\\\MakeOther\$}
\do{dots}{...}{$\dots$}
\SetCorrectHookJobLast
\ResetPatternCodes

\LaTeXresultFile{readprov.doc}
\MakeCloseDoc*{readprov.sty}                        %% star 2012/03/18
  %% <- we must NOT read mdoccorr.cfg here! 
  %%    (or put the above setup into a new one!) ->
% \MakeJobDoc{0}{\ProcessInputWith{PScomment}}

%% Typesetting:
\documentclass{article}
\usepackage{color} %% for highlighting package version!? TODO
\input{makedoc.cfg}
\usepackage{readprov}
% \ReadFileInfos{report.cls} %% WORKS! 2010/11/27
\usepackage{wiki}
\begingroup \MakeActive\" 
 \gdef\fineDQ{``\begingroup
   \let\do\MakeOther \dospecials \tt
   \def"{\endgroup''}}%
\endgroup
% \makeatletter \MakeLetter\_

\pagestyle{headings}
% \usepackage{parskip}

\MDfinaldatechecks
\begin{document}

\maketitle 

\begin{abstract}\sloppy\noindent
  'readprov.sty' 
    renders `\GetFileInfo' from \LaTeX's 
    'doc.sty'\urlfoot{CtanPkgRef}{doc} 
    (without the latter being required)
    and new robust (expandable) variants of it, 
    usable with files that are not really loaded 
    (they are quit when their file info is found, cf. the 'zwgetfdate' 
    package\urlfoot{CtanPkgRef}{zwgetfdate}). 
    So, e.g., you can describe packages that are incompatible 
    with each other or with packages that your document uses.
    You even can report about various class files.

    Such packages then also appear with \LaTeX's `\listfiles'. 
    You may consider this a bug $\dots$ 
'myfilist.sty' 
    makes it a feature (see `myfilist.pdf'). 
\end{abstract}

% \pagebreak
\tableofcontents

\section{Installing}
The file '\jobname.sty' is provided ready, installation only requires 
putting it somewhere where \TeX\ finds it 
(which may need updating the filename data 
 base).\footnote{\url{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-wlcf}}

\section{File Info Header}

\sloppy 
\AddToNoVerbList{%
  \LaTeX\emph\dots\quad\paragraph\texttt\textcolor\\%
  \-}                                   %% 2012/11/11 
\MakeActiveLetHere\"\fineDQ 
\let\\\MDdocnewline                     %% MD 2012/11/12
%% CARE! from next line on, code line indents are special!
\wikiEnvironments %% TODO fails with "or" 2010/03/31
\AutoCmdInput{readprov.doc}
\nowikiEnvironments                     %% 2012/11/12

\end{document}
