summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-06 15:03:03 +0000
committerKarl Berry <karl@freefriends.org>2009-05-06 15:03:03 +0000
commitbafb761bce627f6f4ca4e263dd68130518b50cf6 (patch)
tree28764db2f9a390e43517712593f699d69d48c890 /Master/texmf-dist
parentb4afea7b1b3b0414f91a2c2632b1788c2cc6634f (diff)
svn-prov 1 (3may09)
git-svn-id: svn://tug.org/texlive/trunk@12948 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/svn-prov/README4
-rw-r--r--Master/texmf-dist/doc/latex/svn-prov/svn-prov.pdfbin157730 -> 163619 bytes
-rw-r--r--Master/texmf-dist/source/latex/svn-prov/Makefile87
-rw-r--r--Master/texmf-dist/source/latex/svn-prov/svn-prov.dtx139
-rw-r--r--Master/texmf-dist/source/latex/svn-prov/svn-prov.ins46
-rw-r--r--Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty52
6 files changed, 239 insertions, 89 deletions
diff --git a/Master/texmf-dist/doc/latex/svn-prov/README b/Master/texmf-dist/doc/latex/svn-prov/README
index 32b15d31d1a..e037a717da8 100644
--- a/Master/texmf-dist/doc/latex/svn-prov/README
+++ b/Master/texmf-dist/doc/latex/svn-prov/README
@@ -1,5 +1,9 @@
Package svn-prov
~~~~~~~~~~~~~~~~
+Copyright (C) 2009 Martin Scharrer <martin@scharrer-online.de>
+See the svn-prov.dtx or svn-prov.ins file for the licence information (LPPL).
+
+
This package introduces Subversion variants of the standard LaTeX macros
\ProvidesPackage, \ProvidesClass and \ProvidesFile where the file name and date
is extracted from Subversion Id keywords. The file name can also be given
diff --git a/Master/texmf-dist/doc/latex/svn-prov/svn-prov.pdf b/Master/texmf-dist/doc/latex/svn-prov/svn-prov.pdf
index f620ceac182..9d1264ae95c 100644
--- a/Master/texmf-dist/doc/latex/svn-prov/svn-prov.pdf
+++ b/Master/texmf-dist/doc/latex/svn-prov/svn-prov.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/svn-prov/Makefile b/Master/texmf-dist/source/latex/svn-prov/Makefile
new file mode 100644
index 00000000000..e630b9a1d6b
--- /dev/null
+++ b/Master/texmf-dist/source/latex/svn-prov/Makefile
@@ -0,0 +1,87 @@
+# $Id: Makefile 1049 2009-05-03 00:24:49Z martin $
+
+PACKAGE = svn-prov
+PACKAGE_STY = ${PACKAGE}.sty
+PACKAGE_DOC = ${PACKAGE}.pdf
+PACKAGE_SRC = ${PACKAGE}.dtx ${PACKAGE}.ins Makefile
+PACKFILES = ${PACKAGE_SRC} ${PACKAGE_DOC} README
+TEXAUX = *.aux *.log *.glo *.ind *.idx *.out *.svn *.svx *.svt *.toc *.ilg *.gls *.hd *.exa *.exb
+INSGENERATED = ${PACKAGE_STY}
+ZIPFILE = ${PACKAGE}-${ZIPVERSION}.zip
+TDSZIPFILE = ${PACKAGE}-${ZIPVERSION}.tds.zip
+GENERATED = ${INSGENERATED} ${PACKAGE}.pdf
+ZIPS = zip tdszip
+
+LATEX_OPTIONS = -interaction=batchmode
+LATEX = pdflatex ${LATEX_OPTIONS}
+
+TEXMFDIR = ${HOME}/texmf
+
+CP = cp -v
+MV = mv -v
+RMDIR = rm -rf
+MKDIR = mkdir -p
+
+.PHONY: all doc package clean fullclean tds
+
+all: package doc example
+new: fullclean all
+
+doc: ${PACKAGE}.pdf
+
+package: ${PACKAGE}.sty
+
+example:
+
+%.pdf: %.dtx
+ ${LATEX} $*.dtx
+ -makeindex -s gind.ist -o $*.ind $*.idx
+ -makeindex -s gglo.ist -o $*.gls $*.glo
+ ${LATEX} $*.dtx
+ ${LATEX} $*.dtx
+
+${PACKAGE}.pdf: ${PACKAGE}.sty
+
+${INSGENERATED}: *.dtx ${PACKAGE}.ins
+ yes | latex ${PACKAGE}.ins
+
+clean:
+ rm -f ${TEXAUX}
+
+fullclean: clean
+ rm -f ${GENERATED} *~ *.backup
+ rm -f ${PACKAGE}*.zip
+ rm -rf tds/
+
+zip: fullclean package doc example ${ZIPFILE}
+${PACKAGE}.zip: zip
+
+${ZIPS}: ZIPVERSION=$(shell grep "Package: ${PACKAGE} " ${PACKAGE}.log | \
+ sed -e "s/.*Package: ${PACKAGE} ....\/..\/..\s\+\(v\S\+\).*/\1/")
+
+${ZIPFILE}: ${PACKFILES}
+ grep -q '\* Checksum passed \*' ${PACKAGE}.log
+ -pdfopt ${PACKAGE}.pdf opt_${PACKAGE}.pdf && mv opt_${PACKAGE}.pdf ${PACKAGE}.pdf
+ ${RM} ${ZIPFILE}
+ zip ${ZIPFILE} ${PACKFILES}
+ @echo
+ @echo "ZIP file ${ZIPFILE} created!"
+
+tds: package doc
+ @grep -q '\* Checksum passed \*' ${PACKAGE}.log
+ ${RMDIR} tds
+ ${MKDIR} tds/
+ ${MKDIR} tds/tex/ tds/tex/latex/ tds/tex/latex/${PACKAGE}/
+ ${MKDIR} tds/doc/ tds/doc/latex/ tds/doc/latex/${PACKAGE}/
+ ${MKDIR} tds/source/ tds/source/latex/ tds/source/latex/${PACKAGE}/
+ ${CP} ${PACKAGE_STY} tds/tex/latex/${PACKAGE}/
+ ${CP} ${PACKAGE_DOC} tds/doc/latex/${PACKAGE}/
+ ${CP} ${PACKAGE_SRC} tds/source/latex/${PACKAGE}/
+
+tdszip: tds
+ ${RM} ${TDSZIPFILE}
+ cd tds && zip -r ../${TDSZIPFILE} .
+
+install: tds
+ test -d "${TEXMFDIR}" && ${CP} -a tds/* "${TEXMFDIR}/" && texhash ${TEXMFDIR}
+
diff --git a/Master/texmf-dist/source/latex/svn-prov/svn-prov.dtx b/Master/texmf-dist/source/latex/svn-prov/svn-prov.dtx
index 58f2cfbaaf7..8b0c79f2976 100644
--- a/Master/texmf-dist/source/latex/svn-prov/svn-prov.dtx
+++ b/Master/texmf-dist/source/latex/svn-prov/svn-prov.dtx
@@ -1,17 +1,24 @@
% \iffalse meta-comment
+% $Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $
%
% 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
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
-% The latest version of this license is in:
+% The latest version of this license is in
%
-% http://www.latex-project.org/lppl.txt
+% 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.
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2008/05/04 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-prov.dtx, svn-prov.ins
+% and the derived file svn-prov.sty.
%
% \fi
%
@@ -21,16 +28,14 @@
\makeatletter
%</driver>
%<*driver|package>
-\let\svnprov@orig@fileversion\fileversion
-\def\fileversion{v0.\rev}
+\def\svnprov@version{v1.\rev}
%</driver|package>
%<*driver>
+\ProvidesFileSVN{$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
+ [\svnprov@version\space DTX for \filebase.sty]
+\DefineFileInfoSVN[svnprov]
+\DefineFileInfoSVN
\makeatother
-\ProvidesFileSVN{$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
- [\fileversion\space DTX for \filebase.sty]
-\GetFileInfoSVN*
-\let\svnprovversion\fileversion
-\let\svnprovdate\filedate
\documentclass{ltxdoc}
\usepackage[hyperfootnotes=false]{hyperref}
@@ -98,7 +103,7 @@
%</driver>
% \fi
%
-% \CheckSum{220}
+% \CheckSum{246}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -118,6 +123,7 @@
%
%
% \changes{v0.922}{2009/04/26}{Initial version}
+% \changes{v1.}{2009/05/03}{Added \cs{DefineFileInfoSVN} macro.}
%
% ^^A \GetFileInfo{\jobname.dtx}
%
@@ -129,7 +135,9 @@
% \title{The \textsf{svn-prov} package\\\large Use SVN Id keywords for package,
% class and file header}
% \author{Martin Scharrer \\ \url{martin@scharrer-online.de}}
-% \date{Version~\svnprovversion\ - \svnprovdate}
+% \makeatletter
+% \date{Version~\svnprov@version\ - \svnprov@date}
+% \makeatother
%
% \maketitle
%
@@ -159,7 +167,7 @@
% \texttt{\frenchspacing\${}Id: \meta{filename} \meta{revision} \meta{date}
% \meta{time} \meta{author} \$}\\[\smallskipamount]
% e.g. for the source file of this document:\\*[\smallskipamount]
-% |$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $|
+% |$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $|
% \par\smallskip
% For this to work the Subversion \emph{property} \texttt{svn:keywords} must be
% set to (at least) `|Id|' for the source file(s). e.g.\ using the command
@@ -236,6 +244,38 @@
% contains the file description, e.g.\ the content of the optional argument
% without date and version. The other macros were already described earlier.
%
+% \par\medskip
+% \DescribeMacro{\DefineFileInfoSVN}\hspace*{-\parindent}\hspace{-\marginparsep}\oarg{name}
+% \marginpar{\it New in v1. 2009/05/03}\\
+% Defines a set of macros which provide the information collected by a previous
+% \cs{Provides\ldots} macro. The macros have the form
+% |\|\meta{name}|@|\meta{data} where \meta{name} is by default the filename
+% either with the file extension (general files) or without (packages and
+% classes). This default can be overwritten by the optional argument.
+% The \meta{data} stands for |version|, |rev| (revision), |date| and |info| (the
+% information part without the version number).
+%
+% \noindent
+% \textit{Example:} Applied to the |.dtx| file of this very package the
+% following macros are defined:\par
+% \begingroup
+% \makeatletter\centering
+% \begin{tabular}{ll}
+% Macro & Definition \\
+% \hline
+% \cs{svn-prov.dtx@version} & \@nameuse{svn-prov.dtx@version} \\
+% \cs{svn-prov.dtx@rev} & \@nameuse{svn-prov.dtx@rev} \\
+% \cs{svn-prov.dtx@date} & \@nameuse{svn-prov.dtx@date} \\
+% \cs{svn-prov.dtx@info} & \@nameuse{svn-prov.dtx@info} \\
+% \end{tabular}
+% \\[\medskipamount]
+% The style file however would get macros like \cs{svn-prov@version}.
+% Because `|-|' is not a letter the macros can only be accessed using |\csname|.
+% Therefore the optional argument |[svnprov]| is used to name the macros
+% \cs{svnprov@version} etc..
+% \endgroup
+%
+%
% \section{Examples}
% \begingroup
% \def\{{\texttt{\char`\{}}%
@@ -262,66 +302,66 @@
% \subsubsection*{Minimal usage}
% \begin{example}
% \ProvidesPackageSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% \end{example}
% \begin{example}
% \ProvidesClassSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% \end{example}
% \begin{example}
% \ProvidesFileSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% \end{example}
%
% \subsubsection*{Normal Usage}
% \begin{example}
% \ProvidesPackageSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.0 Example Description]
% \end{example}
% \begin{example}
% \ProvidesClassSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.0 Example Description]
% \end{example}
% \begin{example}
% \ProvidesFileSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.0 Example Description]
% \end{example}
%
% \subsubsection*{Overwriting Name}
% \begin{example}
% \ProvidesPackageSVN[othername]
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.0 Example Description]
% \end{example}
%
% \subsubsection*{Overwriting Name including unneeded Extension}
% \begin{example}
% \ProvidesPackageSVN[othername.sty]
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.0 Example Description]
% \end{example}
%
% \subsubsection*{Overwriting Name using Macros}
% \begin{example}
% \ProvidesFileSVN[\filebase.cfg]
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.0 Example Description]
% \end{example}
%
% \subsubsection*{Using Macros in File Information String}
% \begin{example}
% \ProvidesPackageSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.\Rev Example Description]
% \end{example}
%
% \subsubsection*{Adding Text to Default Information}
% \begin{example}
% \ProvidesPackageSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.\Rev Extra Text \revinfo]
% \end{example}
%
@@ -331,7 +371,7 @@
%
% \begin{example}
% \ProvidesPackageSVN
-% {$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}
+% {$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}
% [v1.\Rev Extra Text \revinfo]
% \GetFileInfoSVN*
% % ...
@@ -557,7 +597,7 @@
%
% This macro is inspired by the macro \cs{GetFileInfo}\marg{file name} from the
% \texttt{doc} package.
-% \begin{macrocode}
+% \begin{macrocode}
\def\GetFileInfoSVN#1{%
\ifx*#1\relax
\let\filebase\svnprov@filebase
@@ -565,9 +605,10 @@
\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
+ \let\fileversion\svnprov@fileversion
+ \let\fileinfo\svnprov@fileinfoonly
\else
\PackageError{svn-prov}{Macro \textbackslash GetFileInfoSVN without '*' is
not implemented yet.}{}{}{}%
@@ -576,16 +617,35 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\DefineFileInfoSVN}
+% Defines macros in the form |\|\meta{filename}|@|\meta{xxx}, where \meta{xxx}
+% is date, version, rev(ision) and info.
+% \begin{macrocode}
+\newcommand*\DefineFileInfoSVN[1][\svnprov@filemask]{%
+ \expandafter\svnprov@getversion
+ \svnprov@fileinfo\relax{} \relax\svnprov@endmarker
+ \expandafter
+ \let\csname#1@date\endcsname\svnprov@filedate
+ \expandafter
+ \let\csname#1@version\endcsname\svnprov@fileversion
+ \expandafter
+ \let\csname#1@rev\endcsname\svnprov@filerev
+ \expandafter
+ \let\csname#1@info\endcsname\svnprov@fileinfoonly
+}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{\svnprov@getversion}
% Splits the string at the first space into arguments \#1 (version) and \#2
% (info). Argument \#3 will be empty if there was no space in the string.
% \begin{macrocode}
\def\svnprov@getversion#1 #2\relax#3\svnprov@endmarker{%
\if&#3&%
- \def\fileversion{??}%
+ \def\svnprov@fileversion{??}%
\else
- \def\fileversion{#1}%
- \def\fileinfo{#2}%
+ \def\svnprov@fileversion{#1}%
+ \def\svnprov@fileinfoonly{#2}%
\fi
}
% \end{macrocode}
@@ -593,16 +653,9 @@
%
% Finally, call the macro for this package itself.
% \begin{macrocode}
-\ProvidesPackageSVN{$Id: svn-prov.dtx 922 2009-04-26 19:18:53Z martin $}%
- [\fileversion\space Package Date/Version from SVN Keywords]
-% \end{macrocode}
-% The macro \cs{fileversion} is restored to it original value which it had
-% before this package was loaded.
-% \begin{macrocode}
-\let\fileversion\svnprov@orig@fileversion
-\let\svnprov@orig@fileversion\@undefined
+\ProvidesPackageSVN{$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}%
+ [\svnprov@version\space Package Date/Version from SVN Keywords]
% \end{macrocode}
%
% \Finale
-\endinput
diff --git a/Master/texmf-dist/source/latex/svn-prov/svn-prov.ins b/Master/texmf-dist/source/latex/svn-prov/svn-prov.ins
index 85c32b85e69..4ffd973b633 100644
--- a/Master/texmf-dist/source/latex/svn-prov/svn-prov.ins
+++ b/Master/texmf-dist/source/latex/svn-prov/svn-prov.ins
@@ -1,40 +1,30 @@
-%%
-%% 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.
-%%
-%% $Id: svn-prov.ins 922 2009-04-26 19:18:53Z martin $
-
+%% $Id: svn-prov.ins 1049 2009-05-03 00:24:49Z martin $
\input docstrip.tex
-\keepsilent
-
-\usedir{tex/latex/svn-prov}
-
\preamble
-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:
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3c
+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.
+and version 1.3c or later is part of all distributions of LaTeX
+version 2008/05/04 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-prov.dtx, svn-prov.ins
+and the derived file svn-prov.sty.
\endpreamble
+\keepsilent
+
+\usedir{tex/latex/svn-prov}
\generate{\file{svn-prov.sty}{\from{svn-prov.dtx}{package}}}
@@ -54,4 +44,4 @@ and version 1.2 or later is part of all distributions of LaTeX version
\Msg{*************************************************************}
\endbatchfile
-
+% vim: ft=tex
diff --git a/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty b/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty
index 17aab53df27..2a74bc8a8f2 100644
--- a/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty
+++ b/Master/texmf-dist/tex/latex/svn-prov/svn-prov.sty
@@ -6,22 +6,26 @@
%%
%% 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:
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% 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.
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008/05/04 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
%%
-\let\svnprov@orig@fileversion\fileversion
-\def\fileversion{v0.\rev}
+%% This work consists of the files svn-prov.dtx, svn-prov.ins
+%% and the derived file svn-prov.sty.
+%%
+\def\svnprov@version{v1.\rev}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\def\ProvidesClassSVN{%
\svnprov@generic\ProvidesClass{\svnprov@filebase}%
@@ -117,26 +121,38 @@
\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
+ \let\fileversion\svnprov@fileversion
+ \let\fileinfo\svnprov@fileinfoonly
\else
\PackageError{svn-prov}{Macro \textbackslash GetFileInfoSVN without '*' is
not implemented yet.}{}{}{}%
\fi
}
+\newcommand*\DefineFileInfoSVN[1][\svnprov@filemask]{%
+ \expandafter\svnprov@getversion
+ \svnprov@fileinfo\relax{} \relax\svnprov@endmarker
+ \expandafter
+ \let\csname#1@date\endcsname\svnprov@filedate
+ \expandafter
+ \let\csname#1@version\endcsname\svnprov@fileversion
+ \expandafter
+ \let\csname#1@rev\endcsname\svnprov@filerev
+ \expandafter
+ \let\csname#1@info\endcsname\svnprov@fileinfoonly
+}
\def\svnprov@getversion#1 #2\relax#3\svnprov@endmarker{%
\if&#3&%
- \def\fileversion{??}%
+ \def\svnprov@fileversion{??}%
\else
- \def\fileversion{#1}%
- \def\fileinfo{#2}%
+ \def\svnprov@fileversion{#1}%
+ \def\svnprov@fileinfoonly{#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
+\ProvidesPackageSVN{$Id: svn-prov.dtx 1049 2009-05-03 00:24:49Z martin $}%
+ [\svnprov@version\space Package Date/Version from SVN Keywords]
+
\endinput
%%
%% End of file `svn-prov.sty'.