[pdftex] current filename and current filedate ?
Heiko Oberdiek
oberdiek at uni-freiburg.de
Fri Dec 19 15:00:10 CET 2003
On Fri, Dec 19, 2003 at 02:39:12PM +0100, Magnus Lie Hetland wrote:
> George N. White III <aa056 at chebucto.ns.ca>:
> >
> [snip]
> > Simply define something like:
> >
> > \def\RCSId $Id: #1,v #2 #3/#4/#5 #6 #7 #8 #9 ${
> [snip]
>
> But you couldn't put the file containing this definition under version
> control, then, could you? Any workarounds there?
Why not?
For example:
%%% test.tex %%%
\def\RCSId $%
Id: #1,v #2 #3/#4/#5 #6 #7 #8 ${%
\def\fileRCSversion{#2}%
\def\fileRCSdate{#3-#4-#5}%
\def\fileRCStime{#6Z}%
}%
\RCSId $Id: test.tex,v 1.3 2003/12/19 13:59:08 one Exp $
Version: \fileRCSversion\filbreak
Date: \fileRCSdate\filbreak
Time: \fileRCStime
\bye
%%% test.tex %%%
Yours sincerely
Heiko <oberdiek at uni-freiburg.de>
More information about the pdftex
mailing list