summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/svn-prov
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-04-29 16:19:07 +0000
committerKarl Berry <karl@freefriends.org>2009-04-29 16:19:07 +0000
commit8c2512fe0c3152aee2fe5781a7e3b86b3fc068a6 (patch)
tree1986dadb8b0b8db4be21db79acd22dfc9e22b5b8 /Master/texmf-dist/tex/latex/svn-prov
parent1d1b5c1f8b53ec82d99290ee611babb8bcdb8705 (diff)
new latex package svn-prov (26apr09)
git-svn-id: svn://tug.org/texlive/trunk@12862 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/svn-prov')
-rw-r--r--Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty142
1 files changed, 142 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty b/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty
new file mode 100644
index 00000000000..17aab53df27
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty
@@ -0,0 +1,142 @@
+%%
+%% This is file `svn-prov.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% svn-prov.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2009 by Martin Scharrer <martin@scharrer-online.de>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.2 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.2 or later is part of all distributions of LaTeX version
+%% 1999/12/01 or later.
+%%
+\let\svnprov@orig@fileversion\fileversion
+\def\fileversion{v0.\rev}
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\def\ProvidesClassSVN{%
+ \svnprov@generic\ProvidesClass{\svnprov@filebase}%
+}
+\def\ProvidesFileSVN{%
+ \svnprov@generic\ProvidesFile{\svnprov@filebase.\svnprov@fileext}%
+}
+\def\ProvidesPackageSVN{%
+ \svnprov@generic\ProvidesPackage{\svnprov@filebase}%
+}
+\def\svnprov@generic#1#2{%
+ \def\svnprov@ltxprov{#1}%
+ \def\svnprov@filemask{#2}%
+ \@ifnextchar{[}%
+ {\svnprov@getid}%
+ {\svnprov@getid[\svnprov@svnfilename]}%
+}
+\def\svnprov@getid[#1]#2{%
+ \def\svnprov@filename{#1}%
+ \svnprov@scanid #2\relax $%
+ Id: unknown.xxx 0 0000-00-00 00:00:00Z user $\svnprov@endmarker
+}
+\def\svnprov@scanid#1$%
+ Id: #2 #3 #4-#5-#6 #7 $#8{%
+ \def\next{%
+ \PackageWarning{svn-prov}{Did not found valid SVN Id line in file
+ '#2'.}{}{}{}%
+ \svnprov@gobbleopt
+ }%
+ \ifx\relax#1\relax
+ \ifx\relax#8\empty
+ \def\svnprov@svnfilename{#2}%
+ \svnprov@splitfilename{#2}%
+ \def\svnprov@filerev{#3}%
+ \def\svnprov@filedate{#4/#5/#6}%
+ \def\next{\svnprov@buildstring}%
+ \fi
+ \fi
+ \expandafter\next\svnprov@gobblerest
+}% $
+\def\svnprov@splitfilename#1{%
+ \edef\g@tempa{#1}%
+ \let\svnprov@filebase\@gobble
+ \expandafter
+ \svnprov@splitfilename@\g@tempa.\relax
+}
+\def\svnprov@splitfilename@#1.#2\relax{%
+ \if&#2&
+ \ifx\svnprov@filebase\@gobble
+ \gdef\svnprov@filebase{#1}%
+ \gdef\svnprov@fileext{}%
+ \else
+ \gdef\svnprov@fileext{#1}%
+ \fi
+ \let\next\relax
+ \else
+ \xdef\svnprov@filebase{\svnprov@filebase.#1}%
+ \def\next{\svnprov@splitfilename@#2\relax}%
+ \fi
+ \next
+}
+\def\svnprov@gobblerest#1\svnprov@endmarker{}
+\def\svnprov@endmarker{\@gobble{svn-prov endmarker}}
+\newcommand*\svnprov@gobbleopt[1][]{}
+\def\svnprov@defaultdesc{%
+ (SVN Rev:\space\svnprov@filerev)%
+}
+\newcommand*\svnprov@buildstring[1][\svnprov@defaultdesc]{%
+ \begingroup
+ \let\rev\svnprov@filerev
+ \let\filerev\svnprov@filerev
+ \def\Rev{\rev\space}%
+ \let\revinfo\svnprov@defaultdesc
+ \let\filebase\svnprov@filebase
+ \let\fileext\svnprov@fileext
+ \ifx\fileversion\@undefined
+ \def\fileversion{v0.0}%
+ \fi
+ \edef\filename{\filebase.\fileext}%
+ \xdef\svnprov@filename{\svnprov@filename}%
+ \ifx\svnprov@filename\filename\else
+ \svnprov@splitfilename{\svnprov@filename}%
+ \fi
+ \let\filename\svnprov@filename
+ \xdef\svnprov@fileinfo{#1}%
+ \endgroup
+ \svnprov@ltxprov{\svnprov@filemask}[\svnprov@filedate\space\svnprov@fileinfo]%
+}
+\def\GetFileInfoSVN#1{%
+ \ifx*#1\relax
+ \let\filebase\svnprov@filebase
+ \let\fileext\svnprov@fileext
+ \let\filename\svnprov@filename
+ \let\filedate\svnprov@filedate
+ \let\filerev\svnprov@filerev
+ \let\fileinfo\svnprov@fileinfo
+ \expandafter\svnprov@getversion
+ \svnprov@fileinfo\relax{} \relax\svnprov@endmarker
+ \else
+ \PackageError{svn-prov}{Macro \textbackslash GetFileInfoSVN without '*' is
+ not implemented yet.}{}{}{}%
+ \fi
+}
+\def\svnprov@getversion#1 #2\relax#3\svnprov@endmarker{%
+ \if&#3&%
+ \def\fileversion{??}%
+ \else
+ \def\fileversion{#1}%
+ \def\fileinfo{#2}%
+ \fi
+}
+\ProvidesPackageSVN{$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}%
+ [\fileversion\space Package Date/Version from SVN Keywords]
+\let\fileversion\svnprov@orig@fileversion
+\let\svnprov@orig@fileversion\@undefined
+\endinput
+%%
+%% End of file `svn-prov.sty'.