diff options
author | Karl Berry <karl@freefriends.org> | 2007-04-22 17:19:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-04-22 17:19:19 +0000 |
commit | 09443fcc9d28c368cae1ee0a429df3196b4ea706 (patch) | |
tree | 7668c253f33e75c58e2f250a843b585bdb5afa95 /Master/texmf-dist/source | |
parent | 8a756de114b8f79175c82eecacd9a7c87546982f (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/source')
-rw-r--r-- | Master/texmf-dist/source/latex/svninfo/Makefile | 4 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/svninfo/svninfo.dtx | 133 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/svninfo/svninfo.ins | 2 |
3 files changed, 82 insertions, 57 deletions
diff --git a/Master/texmf-dist/source/latex/svninfo/Makefile b/Master/texmf-dist/source/latex/svninfo/Makefile index b704906a6a4..ecf11c5ae45 100644 --- a/Master/texmf-dist/source/latex/svninfo/Makefile +++ b/Master/texmf-dist/source/latex/svninfo/Makefile @@ -3,7 +3,7 @@ ## ## For configuration, update the following defines: ## -## $Id: Makefile 3045 2007-03-25 20:34:21Z brucker $ +## $Id: Makefile 3114 2007-04-17 05:53:05Z brucker $ ## ## This file ist part of the svninfo package. Please see the file ## svninfo.dtx for copyright information. @@ -24,7 +24,7 @@ TAR = tar ######################################################################## -REV = 0.7 +REV = 0.7.1 TAR_FILE = svninfo-$(REV).tar.gz TAR_DIR = svninfo-$(REV) SRC = svninfo.dtx svninfo.ins README Makefile diff --git a/Master/texmf-dist/source/latex/svninfo/svninfo.dtx b/Master/texmf-dist/source/latex/svninfo/svninfo.dtx index 8135a16abf3..26a542b638e 100644 --- a/Master/texmf-dist/source/latex/svninfo/svninfo.dtx +++ b/Master/texmf-dist/source/latex/svninfo/svninfo.dtx @@ -70,6 +70,9 @@ % \newcommand{\Id}{\texttt{\$Id\$}} % \newcommand{\SvnInfoCmd}[1]{\texttt{$\backslash$svnInfo\blank\$Id#1\$\blank}} % +% \changes{v0.7.1}{2007/04/27}{Fixed \texttt{\\svnMaxToday} and +% introduced \texttt{\\svnInfoMaxToday} as an alternative +% name. Improved documentation} % \changes{v0.7}{2007/03/26}{Added option \texttt{margin} for showing % version info in the margins of the document; added option % \texttt{svk} for supporting the keyword expansion of svk; added command @@ -96,7 +99,7 @@ % \author{Achim D.~Brucker\\ % {\footnotesize brucker@freiburg.linux.de}\\ % {\footnotesize http://www.brucker.ch/}} -% \date{March 26, 2007\\Version 0.7} +% \date{April 17, 2007\\Version 0.7.1} % % \maketitle % @@ -111,20 +114,30 @@ % % To maintain different versions of a document or to keep track on the % development of one, the document is kept under a revision control -% system like \emph{SCCS}, \emph{CVS}, or \Svn. This package assumes -% you are using either the \Svn\ or the \Svk\ system. To present the -% version information of a document, one needs to extract it from some - -% \Svk\ offer therefore several keywords that are expanded by the -% \Svn\ and \Svk\ \emph{update} commands. The most informative keyword -% is |$Id$| which contains a lot of useful information. This -% information is made available through this package. Additionally, -% the package allows one to extract also the information from the more -% specific keywords, e.g., |$Author$| or |$Date$|. -% -% In this documentation we we \Svn in the examples; but the results -% should be similar if you use \Svk. Note that you to use the -% \texttt{svk} option if you use \Svk. +% system like \emph{SCCS}, \emph{CVS}, \Svn, or \Svk. This package +% assumes you are using either the \Svn\ or the \Svk\ system. To +% present the version information of a document, one needs to extract +% it from somewhere. For example, \Svk and \Svn offer several keywords +% that are expanded by the \Svn\ and \Svk\ \emph{update} +% commands.\footnote{The expansion of keywords has to be enabled +% manually, e.g., \texttt{svn propset svn:keywords "Id" +% svninfo.dtx}.} The most informative keyword is |$Id$| which +% contains a lot of useful information. This information is made +% available through this package. Additionally, the package allows one +% to extract also the information from the more specific keywords, +% e.g., |$Author$| or |$Date$|. +% +% In this documentation we use \Svn in the examples; but the results +% should be similar if you are using \Svk. Note that you have to use +% the \texttt{svk} option if you use \Svk. +% +% Moreover, one has to set the \Svn property for keywords expansion of +% that file, e.g., by executing: +% \begin{verbatim} +% svn propset svn:keywords "Id" svninfo.dtx +% \end{verbatim} +% Please consult the manual of \Svn (e.g., \emph{h}) or \Svk for further +% details about keyword expansion. % % The information obtained from the expanded \Id\ string are % \begin{itemize} @@ -151,7 +164,6 @@ %\subsection{Options} % % Options for this package are: -% % \begin{description} % \item[svk] % Use \texttt{svk} for parsing the Id information generated by @@ -163,7 +175,7 @@ % \item[notoday] % Don't use the \Svn\ date for |\svnToday|. % \item[revrange] For multi-file documents, display minimum and -% maximium revision. Every file of the document must either +% maximum revision. Every file of the document must either % include a |\svnInfo| or a |\svnKeyword $Revision:$| statement. % This is information needs two runs of \LaTeX{} to be correct. % \item[fancyhdr] @@ -281,9 +293,8 @@ % information. % \item \DescribeMacro{\svnToday} The date obtained from the \Svn\ information % in the format |\today| is using. -% \item \DescribeMacro{\svnMaxToday} The date obtained from the latest -% \Svn revision in the format |\today| is using, e.g., you can -% use something like |\date{\svnMaxToday}| in your preample. +% \item \DescribeMacro{\svnInfoMaxToday} The date obtained from the latest +% \Svn revision in the format |\today| is using. % \end{itemize} % \section{Examples} % @@ -302,8 +313,11 @@ % \Cmd{svnInfoMonth} & \svnInfoMonth \\ % \Cmd{svnInfoDay} & \svnInfoDay \\ % \Cmd{svnInfoLongDate} & \svnInfoLongDate \\ -% \Cmd{svnToday} & \svnToday \\ -% \Cmd{svnMaxToday} & \svnMaxToday \\ +% \Cmd{svnToday} & \svnToday \\ +% \Cmd{svnInfoMaxYear} & \svnInfoMaxYear \\ +% \Cmd{svnInfoMaxDay} & \svnInfoMaxDay \\ +% \Cmd{svnInfoMaxMonth} & \svnInfoMaxMonth \\ +% \Cmd{svnInfoMaxToday} & \svnInfoMaxToday \\ % \end{tabular}\\ % \Cmd{svnId} \svnId % \bigskip @@ -371,7 +385,7 @@ % detail: % \begin{itemize} % \item |\svnKeyword $Date:$| updates the date and time -% informations, e.g., |\svnInfoDate|\DescribeMacro{\svnInfoDate}, +% information, e.g., |\svnInfoDate|\DescribeMacro{\svnInfoDate}, % |\svnInfoMonth|\DescribeMacro{\svnInfoMonth}, or % |\svnInfoTime|\DescribeMacro{\svnInfoTime}. % \item |\svnKeyword $Revision:$| updates @@ -392,7 +406,7 @@ % of one file, with the |$Author$| of another file. Please take % care of that! % -% \section{Acknowledgements} +% \section{Acknowledgments} % %%%%%%%%%%%%%%%%%%%%%%%%% % This package is based on \texttt{rcsinfo} from Dr.~J{\"u}rgen % Vollmer. The \texttt{rcsinfo} package is distributed via the CTAN @@ -404,10 +418,11 @@ % ('\texttt{macros/latex/contrib/svn}'). % % Further I want to thank all the people that reported bugs and ideas -% for improvements, often including patches: Christophe Jacquet, Jami -% Lawrence, Stefan Mann, Nigel Metheringham, Michael Niedermair, Heiko -% Oberdiek, Bernd Raichle, J\"org Sommer, Arnout Standaert, Daniel -% Tr\"umper, Thomas Weber, and Uwe Ziegenhagen. +% for improvements, often including patches: Andreas Haller, Christophe +% Jacquet, Jami Lawrence, Stefan Mann, Nigel Metheringham, Igor +% Nikolic, Michael Niedermair, Heiko Oberdiek, Bernd Raichle, J\"org +% Sommer, Arnout Standaert, Daniel Tr\"umper, Thomas Weber, and Uwe +% Ziegenhagen. % % \section{Copyright and License} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -492,7 +507,7 @@ % \begin{macrocode} %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{svninfo}[2007/03/26 v0.8] +\ProvidesPackage{svninfo}[2007/04/17 v0.7.1] % \end{macrocode} % % Declare some local counters to store the \Svn\ date @@ -500,9 +515,6 @@ \newcount\@svnInfoDay \newcount\@svnInfoMonth \newcount\@svnInfoYear -\newcount\@svnInfoMaxDay -\newcount\@svnInfoMaxMonth -\newcount\@svnInfoMaxYear % \end{macrocode} % % To memorize, that we want to set |\svnToday| to the date obtained by the @@ -782,25 +794,23 @@ \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@ \year =\@svnInfoYear \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 @@ -817,16 +827,28 @@ % It takes a \texttt{x}\emph{YYYY-MM-DD}\texttt{x} style of argument. % \begin{macrocode} \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% % \end{macrocode} @@ -850,9 +872,9 @@ } \def\@svnInfoMaxToday {% \begingroup - \year =\@svnInfoMaxYear - \month =\@svnInfoMaxMonth - \day =\@svnInfoMaxDay + \year =\svnInfoMaxYear + \month =\svnInfoMaxMonth + \day =\svnInfoMaxDay \svnToday \endgroup } @@ -867,9 +889,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-% @@ -883,7 +905,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}% } @@ -1034,7 +1057,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}}% } % \end{macrocode} %\subsection{The generic \texttt{\string\svnKeyword} command} @@ -1306,7 +1331,7 @@ \Msg{} \Msg{***********************************************************} \Msg{** Hello to the installation of the `svninfo' package.} -\Msg{** Version 0.7, March 26, 2007} +\Msg{** Version 0.7.1, April 17, 2007} \Msg{***********************************************************} \Msg{} diff --git a/Master/texmf-dist/source/latex/svninfo/svninfo.ins b/Master/texmf-dist/source/latex/svninfo/svninfo.ins index 9d0d72f70f7..ac130e957d4 100644 --- a/Master/texmf-dist/source/latex/svninfo/svninfo.ins +++ b/Master/texmf-dist/source/latex/svninfo/svninfo.ins @@ -63,7 +63,7 @@ \Msg{} \Msg{***********************************************************} \Msg{** Hello to the installation of the `svninfo' package.} -\Msg{** Version 0.7, March 26, 2007} +\Msg{** Version 0.7.1, April 17, 2007} \Msg{***********************************************************} \Msg{} |