From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5048 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Versionnumbers Date: Thu, 12 Jul 2001 09:17:36 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010712091736.019cd600@server-1> References: <009a01c10958$c6640420$a7a5e0d5@pandora.be> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035395666 30822 80.91.224.250 (23 Oct 2002 17:54:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:54:26 +0000 (UTC) Cc: ntg-context Original-To: Hartmut Henkel In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:5048 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5048 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 | pragma@wxs.nl 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 -------------------------------------------------------------------------