Package: rcs-latex Version: 3.1-1 Severity: normal Tags: patch Newer CVS versions (such as the one in debian unstable) insert date tags in ISO form, like this:
$Date: 2006-05-29 16:16:27 $ These fail to work with the original rcs.sty. I have included a backwards compatible patch that fixes rcs.sty; I have also submitted the patch upstream. --Kristoffer H Rose, ph.d. <[EMAIL PROTECTED]> -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-1-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages rcs-latex depends on: ii tetex-base 3.0-17 Basic library files of teTeX Versions of packages rcs-latex recommends: ii tetex-bin 3.0-16 The teTeX binary files -- no debconf information --- /usr/share/texmf/tex/latex/misc/rcs.sty 2005-03-05 16:42:27.000000000 -0500 +++ rcs.sty 2006-05-29 13:08:12.000000000 -0400 @@ -436,22 +436,35 @@ %%% within the definition of RCSDate to avoid having to do an edef %%% which would expand |\today| before babel could redefine it. ---JPG -%%% \beginprog -\def\rcs_set_date #1/#2/#3 #4\end_date{% - \expandafter\def \csname RCS\RCS_keyword\endcsname {% - \begingroup - \day #3 % <-- space! - \month #2 % <-- space! - \year #1 % <-- space! - \today - \endgroup } - \def\RCSTime{#4}% +%%% Further modified to use simple character parsing to allow for both +%%% / delimiter used by original RCS and - delimiter used by modern +%%% CVS, taking care that old 2-digit RCS years are still handled +%%% properly. ---KHR + +%%% \beginprog +\def\rcs_set_date #1 #2\end_date{% + \expandafter\def \csname RCS\RCS_keyword\endcsname + {\begingroup\rcs_set_date_really#1\today\endgroup}% + \def\RCSTime{#2}% + } + +\def\rcs_set_date_really#1#2#3#4#5{% + \ifx#3/ % Very old RCS file with two digit year... + \year 19#1#2 % <-- space! + \def\_{\rcs_set_date_really_ii#4#5}\expandafter\_ + \else + \year #1#2#3#4 % <-- space! + \expandafter\rcs_set_date_really_ii + \fi} + +\def\rcs_set_date_really_ii#1#2#3#4#5{% + \month #1#2 % <-- space! + \day #4#5 % <-- space! } %%% \endprog - %%% \chap Typesetting revision logs. %%% If a revision log is to be typeset, we demand a special format. @@ -588,7 +601,7 @@ %%% \beginprog \def\RcsLogRevision#1#2#3#4{% \item [Revision #1]% - (created at \RcsLogDate #2\endDate\space \RcsLogTime{#3} % <-- space! + (created at \RcsLogDate #2\end_date\space \RcsLogTime{#3} % <-- space! by \RCS_get_author{#4})\\\relax } %%% \endprog @@ -606,13 +619,8 @@ %%% private macro, too. %%% \beginprog -\def\RcsLogDate #1/#2/#3\endDate{% - \begingroup - \day #3 % <-- space! - \month #2 % <-- space! - \year #1 % <-- space! - \today - \endgroup +\def\RcsLogDate #1\end_date{% + \begingroup\rcs_set_date_really#1\today\endgroup } \def\RcsLogTime#1{\ignorespaces} -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]