summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/filedate
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-10-22 23:28:15 +0000
committerKarl Berry <karl@freefriends.org>2012-10-22 23:28:15 +0000
commit79a54feac45324dc347d658510742f578ea9c5da (patch)
treed33d0f6b5b87fd55ba0484cba78a4aafc784208c /Master/texmf-dist/tex/latex/filedate
parentdaaeaf2b27cf6fd1376b8a0ab96409972fb5d58c (diff)
filedate (20oct12)
git-svn-id: svn://tug.org/texlive/trunk@28051 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/filedate')
-rw-r--r--Master/texmf-dist/tex/latex/filedate/filedate.sty29
1 files changed, 17 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/filedate/filedate.sty b/Master/texmf-dist/tex/latex/filedate/filedate.sty
index 46568260357..272ad631dc4 100644
--- a/Master/texmf-dist/tex/latex/filedate/filedate.sty
+++ b/Master/texmf-dist/tex/latex/filedate/filedate.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{filedate}[2012/10/17 v0.2 check file dates (UL)]
+\ProvidesPackage{filedate}[2012/10/19 v0.21 check file dates (UL)]
%% Copyright (C) 2012 Uwe Lueck,
%% http://www.contact-ednotes.sty.de.vu
@@ -105,9 +105,9 @@
\LoadInfoDateOf{#1}%
% \show\theinfodate
\ReadPDFmodDateOf{#1}%
- \edef\@tempb{#2}%
-% \show\@tempb
- \ifx\theinfodate\@tempb
+ \edef\fd@therefdate{#2}%
+% \show\fd@therefdate
+ \ifx\theinfodate\fd@therefdate
\fd@datesequal{#1}%
\else
\fd@datesdiff{#1}%
@@ -128,7 +128,7 @@
\def\fd@equalmess#1{\message{ + #1 passed date check + }}
\def\fd@errdatesdiff#1{%
\PackageError{filedate}{%
- \fd@infodate{#1}\fd@datekind\@tempb}{%
+ \fd@infodate{#1}\fd@refdate}{% %% \fd@refdate 2012/10/19
Fix that!}}
%% |\fd@infodate{<file>}| might be used to change the current
%% presentation of the ``info date:"
@@ -143,17 +143,19 @@
\newcommand*{\DatesDiffErrors}{\let\fd@datesdiff\fd@errdatesdiff}
%% This is the default:
\DatesDiffErrors
-%% After |\DatesDiffNotices|, date differences are told by
+%% After |\DatesDiffNotices|, date differences are reported by
+%% %% <- told -> reported 2012/10/19
%% `\typeout':
\newcommand*{\DatesDiffNotices}{\let\fd@datesdiff\fd@notedatesdiff}
-\def\fd@notedatesdiff#1{\typeout{\fd@infodate{#1}}}
+\def\fd@notedatesdiff#1{\typeout{\fd@infodate{#1}%
+ \fd@refdate}} %% added 2012/10/19
%% After |\ModDates|, reference dates are called ``modification'' dates:
-\newcommand*{\ModDates}{\let\fd@datekind\fd@moddate}
-\def\fd@moddate#1{\MessageBreak vs. modification date #1}
+\newcommand*{\ModDates}{\let\fd@refdate\fd@moddate}
+\def\fd@moddate{\MessageBreak vs. modification date \fd@therefdate}
%% After |\SomeDates|, the type of reference dates is not specified.
%% This is more accurate when the info date is compared with |\rawtoday|.
-\newcommand*{\SomeDates}{\let\fd@datekind\fd@somedate}
-\def\fd@somedate#1{\MessageBreak vs. #1}
+\newcommand*{\SomeDates}{\let\fd@refdate\fd@somedate}
+\def\fd@somedate{\MessageBreak vs. \fd@therefdate}
%% That's the default:
\SomeDates
%%
@@ -201,7 +203,7 @@
%% know that the file was modified ``today".)
\newcommand*{\CheckDateOfToday}[1]{%
\begingroup
- \def\fd@datekind ##1{%
+ \def\fd@refdate{%
\MessageBreak which is not today}%
\CheckDateOf{#1}{\rawtoday}%
\endgroup}
@@ -219,3 +221,6 @@
v0.1 2012/10/15 core try, bad
v0.2 2012/10/16 code for first release
2012/10/17 reordering, correcting documentation
+v0.21 2012/10/19 \fd@datekind\@tempb -> \fd@refdate,
+ \fd@refdate with \DatesDiffNotices! (bug)
+ \@tempb -> \fd@therefdate; doc. mod.s