summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/svninfo
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-04-22 17:19:19 +0000
committerKarl Berry <karl@freefriends.org>2007-04-22 17:19:19 +0000
commit09443fcc9d28c368cae1ee0a429df3196b4ea706 (patch)
tree7668c253f33e75c58e2f250a843b585bdb5afa95 /Master/texmf-dist/tex/latex/svninfo
parent8a756de114b8f79175c82eecacd9a7c87546982f (diff)
svninfo 0.7.1 (17apr07)
git-svn-id: svn://tug.org/texlive/trunk@4175 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/svninfo')
-rw-r--r--Master/texmf-dist/tex/latex/svninfo/svninfo.cfg1
-rw-r--r--Master/texmf-dist/tex/latex/svninfo/svninfo.sty59
2 files changed, 34 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/svninfo/svninfo.cfg b/Master/texmf-dist/tex/latex/svninfo/svninfo.cfg
index f545c94d821..7277d74432d 100644
--- a/Master/texmf-dist/tex/latex/svninfo/svninfo.cfg
+++ b/Master/texmf-dist/tex/latex/svninfo/svninfo.cfg
@@ -36,6 +36,5 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-
\ExecuteOptions{fancyhdr}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/latex/svninfo/svninfo.sty b/Master/texmf-dist/tex/latex/svninfo/svninfo.sty
index 2a49fbc3b04..e873793942a 100644
--- a/Master/texmf-dist/tex/latex/svninfo/svninfo.sty
+++ b/Master/texmf-dist/tex/latex/svninfo/svninfo.sty
@@ -58,15 +58,11 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{svninfo}[2007/03/26 v0.8]
+\ProvidesPackage{svninfo}[2007/04/17 v0.7.1]
\newcount\@svnInfoDay
\newcount\@svnInfoMonth
\newcount\@svnInfoYear
-\newcount\@svnInfoMaxDay
-\newcount\@svnInfoMaxMonth
-\newcount\@svnInfoMaxYear
\newif\if@svnInfoToday@
\DeclareOption{today}{
\@svnInfoToday@true
@@ -200,17 +196,9 @@
\def\@svnInfoCrackString #1 #2 #3 #4 #5 {%
\def\svnInfoFile{#1}%
\def\svnInfoRevision{#2}%
- \ifthenelse{\(\equal{\svnInfoMaxRevision}{--maxrevision--}\) %
- \OR \( #2 > \svnInfoMaxRevision \)}{%
- \@svnInfoMaxYear =\@svnInfoYear
- \@svnInfoMaxMonth =\@svnInfoMonth
- \@svnInfoMaxDay =\@svnInfoDay
- \def\svnInfoMaxRevision{#2}%
- }{}%
- \ifthenelse{\(\equal{\svnInfoMinRevision}{--minrevision--}\) %
- \OR \( #2 < \svnInfoMinRevision \)}{\def\svnInfoMinRevision{#2}}{}%
\def\svnInfoTime{#4}%
- \@svnInfoSplitDate x#3x%
+ %
+ \@svnInfoSplitDate x#3r#2x%
\@svnInfoMargin%
\def\svnInfoLongDate{\@svnInfoToday}%
\if@svnInfoToday@
@@ -218,6 +206,12 @@
\month =\@svnInfoMonth
\day =\@svnInfoDay
\fi
+\ifthenelse{\(\equal{\svnInfoMaxRevision}{--maxrevision--}\) %
+ \OR \( \svnInfoMaxRevision < #2 \)}{%
+ \def\svnInfoMaxRevision{#2}%
+ }{}%
+ \ifthenelse{\(\equal{\svnInfoMinRevision}{--minrevision--}\) %
+ \OR \( #2 < \svnInfoMinRevision \)}{\def\svnInfoMinRevision{#2}}{}%
\if $#5 \def\svnInfoOwner{}%$%
\def\svnId{#1\ #2\ #3\ #4}%
\else
@@ -227,16 +221,28 @@
\fi
}
\if@svnInfoSVK@
- \def\@svnInfoSplitDate x#1-#2-#3T#4Zx{%
+ \def\@svnInfoSplitDate x#1-#2-#3T#4Zr#4x{%
\@svnInfoDay =#3\relax
\@svnInfoMonth=#2\relax
\@svnInfoYear =#1\relax
+ \ifthenelse{\(\equal{\svnInfoMaxRevision}{--maxrevision--}\) %
+ \OR \( \svnInfoMaxRevision < #4 \)}{%
+ \def\svnInfoMaxYear{#1}%
+ \def\svnInfoMaxMonth{#2}%
+ \def\svnInfoMaxDay{#3}%
+ }{}%
}
\else%
- \def\@svnInfoSplitDate x#1-#2-#3x{%
+ \def\@svnInfoSplitDate x#1-#2-#3r#4x{%
\@svnInfoDay =#3\relax
\@svnInfoMonth=#2\relax
\@svnInfoYear =#1\relax
+ \ifthenelse{\(\equal{\svnInfoMaxRevision}{--maxrevision--}\) %
+ \OR \( \svnInfoMaxRevision < #4 \)}{%
+ \def\svnInfoMaxYear{#1}%
+ \def\svnInfoMaxMonth{#2}%
+ \def\svnInfoMaxDay{#3}%
+ }{}%
}
\fi%
\def\@svnInfoToday {%
@@ -249,9 +255,9 @@
}
\def\@svnInfoMaxToday {%
\begingroup
- \year =\@svnInfoMaxYear
- \month =\@svnInfoMaxMonth
- \day =\@svnInfoMaxDay
+ \year =\svnInfoMaxYear
+ \month =\svnInfoMaxMonth
+ \day =\svnInfoMaxDay
\svnToday
\endgroup
}
@@ -260,9 +266,9 @@
\@svnInfoYear =\year
\@svnInfoMonth =\month
\@svnInfoDay =\day
- \@svnInfoMaxYear =\year
- \@svnInfoMaxMonth =\month
- \@svnInfoMaxDay =\day
+ \ifthenelse{\isundefined{\svnInfoMaxYear}}{\def\svnInfoMaxYear{\the\year}}{}
+ \ifthenelse{\isundefined{\svnInfoMaxMonth}}{\def\svnInfoMaxMonth{\the\month}}{}
+ \ifthenelse{\isundefined{\svnInfoMaxDay}}{\def\svnInfoMaxDay{\the\day}}{}
\def\svnInfoFile{--sourcefile--}%
\def\svnInfoHeadURL{--head-url--}%
\def\svnInfoDate{\the\@svnInfoYear-\two@digits\@svnInfoMonth-%
@@ -276,7 +282,8 @@
\def\svnInfoMonth{\the\@svnInfoMonth}%
\def\svnInfoDay{\the\@svnInfoDay}%
\def\svnInfoLongDate{\@svnInfoToday}%
- \ifthenelse{\isundefined{\svnInoMaxToday}}{\def\svnMaxToday{\@svnInfoMaxToday}}{}%
+ \def\svnInfoMaxToday{\@svnInfoMaxToday}%
+ \def\svnMaxToday{\@svnInfoMaxToday}%
\def\svnId{\svnInfoFile\ \svnInfoRevision\ \svnInfoTime\ \svnInfoOwner}%
}
@@ -390,7 +397,9 @@
\AtEndDocument{%
\immediate\write\@mainaux{\string\gdef\string\svnInfoMinRevision{\svnInfoMinRevision}}%
\immediate\write\@mainaux{\string\gdef\string\svnInfoMaxRevision{\svnInfoMaxRevision}}%
- \immediate\write\@mainaux{\string\gdef\string\svnMaxToday{\immediate\svnMaxToday}}%
+ \immediate\write\@mainaux{\string\gdef\string\svnInfoMaxDay{\svnInfoMaxDay}}%
+ \immediate\write\@mainaux{\string\gdef\string\svnInfoMaxMonth{\svnInfoMaxMonth}}%
+ \immediate\write\@mainaux{\string\gdef\string\svnInfoMaxYear{\svnInfoMaxYear}}%
}
\def\svnKeyword $#1${\svn@$#1: $}
\let\svnKeywordempty\relax