summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty')
-rw-r--r--Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty39
1 files changed, 31 insertions, 8 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 f8d8e4b1000..8caa4016b7d 100644
--- a/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty
+++ b/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty
@@ -28,7 +28,7 @@
%% DTX Id: $Id: svn-multi.dtx 628 2007-07-10 20:32:06Z martin $
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{svn-multi}
- [2008/12/03 v1.3b SVN Keywords for multi-file LaTeX documents]
+ [2009/02/27 v1.4 SVN Keywords for multi-file LaTeX documents]
\newcommand{\svn}{\@ifnextchar{*}{\svn@s}{\svn@n}}
\def\svn@n#1{\@svn@n#1}
@@ -45,8 +45,23 @@
\def\svnhour{0} \def\svnfilehour{0} \def\@svn@hour{0}
\def\svnminute{0} \def\svnfileminute{0} \def\@svn@minute{0}
\def\svnsecond{0} \def\svnfilesecond{0} \def\@svn@second{0}
-\def\svntimezone{0} \def\svnfiletimezone{0} \def\@svn@timezone{0}
+\def\svntimezonehour{+00} \def\svnfiletimezonehour{+00} \def\@svn@timezonehour{+00}
+\def\svntimezoneminute{00} \def\svnfiletimezoneminute{00} \def\@svn@timezoneminute{00}
\def\svnmainurl{NOT SET}\def\svnmainfilename{NOT SET}
+\def\svntimezone{\svntimezonehour\svntimezoneminute\svn@gobblezeros}
+\def\svnfiletimezone{\svnfiletimezonehour\svnfiletimezoneminute\svn@gobblezeros}
+
+\def\svn@gobblezeros{%
+\futurelet\svn@nextchar\svn@gobblezeros@
+}
+\def\svn@gobblezeros@{%
+\let\@tempa=\relax
+\def\@tempb{0}%
+\ifx0\svn@nextchar
+\let\@tempa=\@gobbletwo
+\fi
+\@tempa
+}
\newcommand*{\svnid}{%
\@svnidswtrue
@@ -79,7 +94,8 @@
\xdef\@svn@hour{\svnfilehour}%
\xdef\@svn@minute{\svnfileminute}%
\xdef\@svn@second{\svnfilesecond}%
-\xdef\@svn@timezone{\svnfiletimezone}%
+\xdef\@svn@timezonehour{\svnfiletimezonehour}%
+\xdef\@svn@timezoneminute{\svnfiletimezoneminute}%
\else\fi
\fi
}
@@ -234,22 +250,28 @@
\gdef\svnfilehour{#4}%
\gdef\svnfileminute{#5}%
\gdef\svnfilesecond{#6#7}%
-\gdef\svnfiletimezone{+00}% #8 always 'Z' for Zulu-time (UTC)
+\gdef\svnfiletimezonehour{+00}%
+\gdef\svnfiletimezoneminute{00}% #8 always 'Z' for Zulu-time (UTC)
}
\def\@svn@scanlongdate#1{\expandafter\@svn@scanlongdate@#1\relax}
-\def\@svn@scanlongdate@#1-#2-#3 #4:#5:#6 #700 #8\relax{%
+\def\@svn@scanlongdate@#1-#2-#3 #4:#5:#6 #7 #8\relax{%
\gdef\svnfileyear{#1}%
\gdef\svnfilemonth{#2}%
\gdef\svnfileday{#3}%
\gdef\svnfilehour{#4}%
\gdef\svnfileminute{#5}%
\gdef\svnfilesecond{#6}%
-\gdef\svnfiletimezone{#7}%
+\@svn@parsetimezone#7\relax%
+}
+
+\def\@svn@parsetimezone#1#2#3#4#5\relax{%
+\gdef\svnfiletimezonehour{#1#2#3}%
+\gdef\svnfiletimezoneminute{#4#5}%
}
\def\svnpdfdate{\svnyear\svnmonth\svnday
-\svnhour\svnminute\svnsecond\svntimezone'00'}
+\svnhour\svnminute\svnsecond\svntimezonehour'\svntimezoneminute'}
\newcommand{\svnsetmainfile}
{\edef\svnmainurl{\svnkw{HeadURL}}
@@ -316,7 +338,8 @@
\noexpand\def\noexpand\svnhour{\@svn@hour}^^J%
\noexpand\def\noexpand\svnminute{\@svn@minute}^^J%
\noexpand\def\noexpand\svnsecond{\@svn@second}^^J%
- \noexpand\def\noexpand\svntimezone{\@svn@timezone}^^J%
+ \noexpand\def\noexpand\svntimezonehour{\@svn@timezonehour}^^J%
+ \noexpand\def\noexpand\svntimezoneminute{\@svn@timezoneminute}^^J%
}
\immediate\closeout\svn@write%
\fi\fi\fi\fi\fi%