summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/svn/svn.sty
blob: a0f3c4cea483e88cf1e4655e68920187e7dd8d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
%%
%% This is file `svn.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% svn.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2003-7 by Richard Lewis <rpil2+svn.sty@rtf.org.uk>
%% 
%% This file 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 2003/06/01 or later.
%% 
%% This work has the LPPL maintenance status `maintained', and the
%% Current Maintainer of this work is Richard Lewis <rpil2+svn.sty@rtf.org.uk>.
%% 
%% This work consists of all files listed in the `Contents' section of
%% the README file.
%% 
\NeedsTeXFormat{LaTeX2e}
\def\next $Id: #1 #2 #3-#4-#5 #6${%
  \def\svn@date{#3/#4/#5}%
  \def\svn@revision{#2}%
}
\next $Id: svn.dtx 43 2007-09-25 19:20:04Z repos $
\edef\next{%
  \noexpand\ProvidesPackage{svn}[\svn@date\space r\svn@revision\space
                                 Typeset Subversion keywords.]%
}
\next
\def\SVN $#1${\svn@$#1: $}
\newcommand{\SVNempty}{}
\def\svn@$#1: #2${%
  \def\svn@tmp{#2}%
  \ifx\svn@tmp\@empty
    \def\svn@suffix{@unexpanded}%
  \else
    \def\svn@suffix{@expanded}%
  \fi
  \@ifundefined{SVN@#1\svn@suffix}%
      {\@nameuse{SVN@generic\svn@suffix}{#1}{#2}}%
    {\@nameuse{SVN@#1\svn@suffix}{#1}{#2}}%
}
\def\SVN@generic@expanded#1#2{%
  \expandafter\svn@set\csname SVN#1\endcsname$#2$%
}
\def\SVN@generic@unexpanded#1#2{%
  \expandafter\global\expandafter\let\csname SVN#1\endcsname\SVNempty
}
\def\svn@set#1$#2 : ${\gdef#1{#2}}
\def\SVN@Date@unexpanded#1#2{%
  \gdef\SVNDate{\today}%
  \global\let\SVNTime\SVNempty
  \global\let\SVNRawDate\SVNempty
}
\let\SVN@LastChangedDate@unexpanded\SVN@Date@unexpanded
\def\SVN@Date@expanded#1#2{%
  \svn@set\SVNRawDate$#2$%
  \svn@parse@date$#2$%
}
\let\SVN@LastChangedDate@expanded\SVN@Date@expanded
\def\svn@parse@date$#1-#2-#3 #4:#5:#6 #7${%
  \gdef\SVNDate{%
    \begingroup
      \def\svn@tmp{\PackageError{svn}{\SVNDate should not
      be used in an \protect\edef}{See the svn.sty documentation for a
      work-around.}}%
      \day#3 \month#2 \year#1
      \today
    \endgroup}%
  \gdef\SVNTime{#4:#5:#6}%
}
\def\SVNdate $#1${\SVN $#1$\date{\SVNDate}}
\endinput
%%
%% End of file `svn.sty'.