At 11:03 PM 7/11/01 +0200, Hartmut Henkel wrote:
>You might use `rcs', revision control system. This stamps your files
>with an Id string, containing filename, -version, -date, creator...
>
>You submit e. g. the file foo.tex by ci foo.tex. You get the new version
>for editing by typing co -l foo.tex
>
>In plain TeX the following macro scans the Id string, when you have
>initially included a line \scanrcs $Id$ into your input file:
>
>% begin of file foo.tex
>\def\scanrcs $#1 #2,v #3 #4/#5/#6 #7 #8 #9 ${%
> \def\fileversion{#3}
> \def\filedate{#4#5#6} % Or whatever date format you like
> }
>
>\scanrcs $Id: foo.tex,v 1.1 2001/07/11 20:49:46 hahe Exp hahe $
>
>\fileversion
>\bye
>% end of file foo.tex
>
>E. g. this prints `1.1', the current version.
>
>Should be transferable also to ConTeXt, but don't have experience with
>it.
Where is this line put? At the top of a file? In a separate file? In
principle reading such a line could be automated [i.e. hooked into \starttext]
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------