From e3e5b0d13853ec7695e9288b3702a052018b7812 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 27 Apr 2010 01:00:18 +0000 Subject: svn-prov update (25apr10) git-svn-id: svn://tug.org/texlive/trunk@18017 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex/latex/svn-prov') diff --git a/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty b/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty index 3a4797fadd9..8a1a075fca6 100644 --- a/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty +++ b/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty @@ -74,12 +74,16 @@ \svnprov@splitfilename{#2}% \def\svnprov@filerev@{#3}% \def\svnprov@filedate@{#4/#5/#6}% + \def\svnprov@filetoday@{\svnprov@@today{#4}{#5}{#6}}% \def\next{\begingroup\svnprov@catcodes\svnprov@buildstring}% \fi \fi \expandafter\next\svnprov@gobblerest }% $ \endgroup +\def\svnprov@@today#1#2#3{% + {\year#1\month#2\day#3\relax\today}% +} \def\svnprov@splitfilename#1{% \edef\g@tempa{#1}% \let\svnprov@filebase@\@gobble @@ -158,7 +162,7 @@ \let\filerev\svnprov@filerev@ \let\fileversion\svnprov@fileversion@ \let\fileinfo\svnprov@filedesc@ - \expandafter\svnprov@settoday@\svnprov@filedate@\relax + \let\filetoday\svnprov@filetoday@ \else \expandafter\let\expandafter\@gtempa\csname#1@short\endcsname% \ifx\@gtempa\relax @@ -173,17 +177,9 @@ \expandafter\let\expandafter\filerev \csname\@gtempa @rev\endcsname \expandafter\let\expandafter\fileversion\csname\@gtempa @version\endcsname \expandafter\let\expandafter\fileinfo\csname\@gtempa @info\endcsname - \@ifundefined{\@gtempa @date}% - {\def\filetoday{?}}% - {\expandafter\expandafter\expandafter\svnprov@settoday@\csname\@gtempa @date\endcsname\relax}% + \expandafter\let\expandafter\filetoday\csname\@gtempa @today\endcsname \fi } -\def\svnprov@settoday@#1/#2/#3\relax{% - \def\filetoday{{% - \year#1\month#2\day#3\relax - \today - }}% -} \newcommand*\DefineFileInfoSVN[1][\svnprov@filemask]{% \expandafter \edef\csname\svnprov@filemask @short\endcsname{#1}% @@ -201,6 +197,8 @@ \let\csname#1@rev\endcsname\svnprov@filerev@ \expandafter \let\csname#1@info\endcsname\svnprov@filedesc@ + \expandafter + \let\csname#1@today\endcsname\svnprov@filetoday@ } \def\svnprov@getversion#1{% \edef\@tempa{#1\space}% @@ -224,7 +222,7 @@ \gdef\svnprov@filedesc@{#1}% } \def\svnprov@zapspace#1 \svnprov@endmarker{#1} -\ProvidesPackageSVN{$Id: svn-prov.dtx 1858 2010-04-14 18:30:31Z martin $}% +\ProvidesPackageSVN{$Id: svn-prov.dtx 1862 2010-04-24 14:19:07Z martin $}% [\svnprov@version\space Package Date/Version from SVN Keywords] \DefineFileInfoSVN[svnprov] -- cgit v1.2.3