diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty | 87 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/svn-multi/svnkw.sty | 38 |
2 files changed, 58 insertions, 67 deletions
diff --git a/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty b/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty index ea4351cd212..33e43faeece 100644 --- a/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty +++ b/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty @@ -26,15 +26,12 @@ %% and the derived files svn-multi.sty, svnkw.sty and svn-multi.pl. %% \makeatletter -\def\svnmulti@version {v2.1a} -\def\svnmulti@rev $#1: #2 ${\def\svnmulti@rev{#2}} -\def\svnmulti@date $#1: #2-#3-#4 #5 ${\def\svnmulti@date{#2/#3/#4}} -\svnmulti@rev $Rev: 845 $\relax -\svnmulti@date $Date: 2009-04-21 13:03:08 +0100 (Tue, 21 Apr 2009) $\relax - +\def\svnmulti@version{v2.2} +\RequirePackage{svn-prov} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{svn-multi} - [\svnmulti@date\space\svnmulti@version\space SVN Keywords for multi-file LaTeX documents] +\ProvidesPackageSVN + {$Id: svn-multi.dtx 1448 2009-10-19 21:28:41Z martin $} + [\svnmulti@version\space SVN Keywords for multi-file LaTeX documents] \RequirePackage{kvoptions} @@ -201,17 +198,17 @@ \def\svn@ifvalidrev#1{% \begingroup \@ifundefined{#1}% - {\def\svn@temp{-1}}% + {\let\svn@temp\svn@revinit}% {\expandafter\edef \expandafter\svn@temp\expandafter{\csname #1\endcsname}}% - \ifnum\svn@temp>-1\relax + \ifnum\svn@temp=\svn@revinit\relax \endgroup \expandafter - \@firstoftwo + \@secondoftwo \else \endgroup \expandafter - \@secondoftwo + \@firstoftwo \fi } @@ -246,7 +243,10 @@ \svn@popfilestack } -\def\svnrev{-1} \def\@svn@rev{-1} +\def\svn@revinit{-2} +\let\svnrev\svn@revinit \let\@svn@rev\svn@revinit +\let\ifsvnmodified\@secondoftwo +\def\@svn@modified{@secondoftwo}% \def\svndate{} \def\@svn@date{} \def\svnauthor{} \def\@svn@author{} \def\svnyear{0000} \def\@svn@year{0000} @@ -265,7 +265,8 @@ \let\@svng@@files\relax \def\svn@initfile{% - \gdef\svnfilerev{-1}% + \global\let\svnfilerev\svn@revinit + \global\let\ifsvnfilemodified\@secondoftwo \gdef\svnfiledate{}% \gdef\svnfileauthor{}% \gdef\svnfileyear{0000}% @@ -282,6 +283,8 @@ } \svn@initfile +\newif\ifsvn@modified + \begingroup \@makeother\^^L @@ -512,6 +515,11 @@ \def\@svn@updateid#1#2#3#4{% \xdef\svnfilerev{#1}% + \ifsvn@modified + \global\let\ifsvnfilemodified\@firstoftwo + \else + \global\let\ifsvnfilemodified\@secondoftwo + \fi \xdef\svnfiledate{#2}% \xdef\svnfileauthor{#3}% \xdef\svnfileurl{#4}% @@ -519,6 +527,7 @@ \ifx\svnfilerev\empty\else \ifnum\@svn@rev<\svnfilerev \xdef\@svn@rev{\svnfilerev}% + \xdef\@svn@modified{\ifsvnfilemodified{@firstoftwo}{@secondoftwo}}% \xdef\@svn@date{\svnfiledate}% \xdef\@svn@author{\svnfileauthor}% \xdef\@svn@year{\svnfileyear}% @@ -552,10 +561,10 @@ \newcommand{\svnidlong}{% - \svnkwdef{HeadURL}{}% - \svnkwdef{LastChangedDate}{}% - \svnkwdef{LastChangedRevision}{0}% - \svnkwdef{LastChangedBy}{}% + \svnkwdef{URL}{}% + \svnkwdef{Date}{}% + \svnkwdef{Revision}{0}% + \svnkwdef{Author}{}% \begingroup \if@svnmulti@verbatim \svn@catcodes @@ -596,11 +605,11 @@ \svnkwsave@read #3\relax \svnkwsave@read #4\relax \endgroup - \ifx\svnkwLastChangedDate\empty\else - \@svn@scanlongdate{\svnkwLastChangedDate}% + \ifx\svnkwDate\empty\else + \@svn@scanlongdate{\svnkwDate}% \fi - \@svn@updateid{\svnkw{LastChangedRevision}}{\svnkw{LastChangedDate}}% - {\svnkw{LastChangedBy}}{\svnkw{HeadURL}}% + \@svn@updateid{\svnkw{Revision}}{\svnkw{Date}}% + {\svnkw{Author}}{\svnkw{URL}}% \ignorespaces }% @@ -652,7 +661,23 @@ \def\svnkwdef@Rev#1{% \svn@ifempty{#1}% {\svnkwdef@{Rev}{0}}% - {\svnkwdef@{Rev}{#1}}% + {% + \afterassignment\svnkwdef@Rev@ + \@tempcnta=#1\relax + }% +} +\def\svnkwdef@Rev@#1\relax{% + \svnkwdef@{Rev}{\the\@tempcnta}% + \def\svn@temp{#1}% + \if M\svn@temp\relax + \global\svn@modifiedtrue + \else + \if *\svn@temp\relax + \global\svn@modifiedtrue + \else + \global\svn@modifiedfalse + \fi + \fi } \def\svnkwdef@Author#1{\svnkwdef@{Author}{#1}} \def\svnkwdef@Date#1{\svnkwdef@{Date}{#1}} @@ -660,11 +685,11 @@ \let\svnkwdef@Revision=\svnkwdef@Rev \let\svnkwdef@LastChangedRevision=\svnkwdef@Rev \let\svnkwdef@LastChangedBy=\svnkwdef@Author -\let\svnkwdef@LastChangedAt=\svnkwdef@Date +\let\svnkwdef@LastChangedDate=\svnkwdef@Date \def\svnkwRevision{\svnkwRev} \def\svnkwLastChangedRevision{\svnkwRev} \def\svnkwLastChangedBy{\svnkwAuthor} -\def\svnkwLastChangedAt{\svnkwDate} +\def\svnkwLastChangedDate{\svnkwDate} \def\svnkwURL{\svnkwHeadURL} \svnkwdef{Rev}{0} @@ -920,6 +945,7 @@ Try a different version, e.g. v2.1.1 from 2008/02/27}{}% {\svnfilefname}% {\svn@g}% {\svn@pg}% + {\ifsvnfilemodified{@firstoftwo}{@secondoftwo}}% }\svn@filestack}% } @@ -927,7 +953,7 @@ Try a different version, e.g. v2.1.1 from 2008/02/27}{}% \svn@restorefilekws@#1\empty \empty \empty \empty \empty \empty \empty \empty \empty - \empty \empty \empty \empty + \empty \empty \empty \empty \empty \svn@ifempty{#2}% {\gdef\svn@filestack{{}}}% {\gdef\svn@filestack{#2}}% @@ -945,13 +971,15 @@ Try a different version, e.g. v2.1.1 from 2008/02/27}{}% \svn@restorefilekws@@ } -\def\svn@restorefilekws@@#1#2#3#4#5#6{% +\def\svn@restorefilekws@@#1#2#3#4#5#6#7{% \gdef\svnfiletimezonehour{#1}% \gdef\svnfiletimezoneminute{#2}% \gdef\svnfileurl{#3}% \gdef\svnfilefname{#4}% \gdef\svn@g{#5}% \gdef\svn@pg{#6}% + \expandafter\global\expandafter\let + \expandafter\ifsvnfilemodified\csname#7\endcsname% } \def\svn@popfilestack{% @@ -1136,7 +1164,7 @@ Try a different version, e.g. v2.1.1 from 2008/02/27}{}% } \def\svn@initgroup#1{% - \svn@gkwset{#1}{rev}{-1}% + \svn@gkwset{#1}{rev}{\svn@revinit}% \svn@gkwset{#1}{date}{}% \svn@gkwset{#1}{author}{}% \svn@gkwset{#1}{year}{0000}% @@ -1194,7 +1222,7 @@ Try a different version, e.g. v2.1.1 from 2008/02/27}{}% } \def\svn@subgroup#1{% - \ifnum\svnfilerev>-1\relax + \ifnum\svnfilerev=\svn@revinit\else \expandafter\ifx\csname svn@g@#1\endcsname\relax% \expandafter\gdef\csname svn@g@#1\endcsname{1}% \svn@updategroup{#1}% @@ -1634,6 +1662,7 @@ patch generated macros '\string\pgf@image@<name>!' from the 'pgf' package!}% \immediate\write\svn@write{^^J% \@percentchar\space Global values:^^J% \noexpand\def\noexpand\svnrev{\@svn@rev}^^J% + \noexpand\let\noexpand\ifsvnmodified\@backslashchar\@svn@modified^^J% \noexpand\def\noexpand\svndate{\@svn@date}^^J% \noexpand\def\noexpand\svnauthor{\@svn@author}^^J% \noexpand\def\noexpand\svnyear{\@svn@year}^^J% diff --git a/Master/texmf-dist/tex/latex/svn-multi/svnkw.sty b/Master/texmf-dist/tex/latex/svn-multi/svnkw.sty deleted file mode 100644 index b3aa179102a..00000000000 --- a/Master/texmf-dist/tex/latex/svn-multi/svnkw.sty +++ /dev/null @@ -1,38 +0,0 @@ -%% -%% This is file `svnkw.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% svn-multi.dtx (with options: `wrapper') -%% -%% This is a generated file. -%% -%% Copyright (C) 2006-2009 by Martin Scharrer <martin@scharrer-online.de> -%% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status `maintained'. -%% -%% The Current Maintainer of this work is Martin Scharrer. -%% -%% This work consists of the files svn-multi.dtx, svn-multi-pl.dtx, svn-multi.ins -%% and the derived files svn-multi.sty, svnkw.sty and svn-multi.pl. -%% -\makeatletter -\NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{svnkw} - [2009/03/27 v2.1 Backward compatibility wrapper for svn-multi] -\PackageWarning{svnkw}{The package 'svnkw' got renamed to 'svn-multi' and is now -only a backward compatibility wrapper which loads 'svn-multi'. Please adjust -your document preamble to use the new name.} -\RequirePackage{svn-multi} -\endinput -%% -%% End of file `svnkw.sty'. |