From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7899 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: getting context's version Date: Mon, 20 May 2002 10:56:38 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020520105456.01fd7cd8@server-1> References: <20020919204127.A861@scaprea> <20020918114734.404ff990.taco@elvenkind.com> <20020919204127.A861@scaprea> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_8743512==_" X-Trace: main.gmane.org 1035398336 23177 80.91.224.250 (23 Oct 2002 18:38:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:38:56 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Taco Hoekwater In-Reply-To: <20020920100634.17cfc5af.taco@elvenkind.com> Xref: main.gmane.org gmane.comp.tex.context:7899 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7899 --=====================_8743512==_ Content-Type: text/plain; charset="us-ascii"; format=flowed At 10:06 AM 9/20/2002 +0200, Taco Hoekwater wrote: >Hi, > >Something like this would be good to have in the context core. (watch >the *like this*). right, needs some thinking -) texexec --version > TeXExec 2.6 - ConTeXt / PRAGMA ADE 1997-2001 > TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000 > cont-en: ver: 2001.11.13 fmt: 2002.8.28 int: english mes: english > cont-nl: ver: 2001.11.13 fmt: 2002.8.28 int: dutch mes: dutch > tex: pdfeTeX, Version 3.14159-1.00b-pretest-20020211-2.1 (Web2C 7.3.7) > >Is that doable? sure, see attached version.pl this is windows, so can you sort out the > redirection alternative for unix? Hans --=====================_8743512==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="version.pl" $texexec = $texutil = $pdfetex = $english = $dutch = "" ; sub AnalyzeVersion { open (LOG, "texexec.tmp") ; while () { chomp ; if (/^\s*(.*TeXExec.*?)\s*$/o) { $texexec = $1 } elsif (/^\s*(.*TeXUtil.*?)\s*$/o) { $texutil = $1 } elsif (/^\s*(.*pdf(|e)TeX.*?)\s*$/o) { $pdfetex = $1 } elsif (/^\s*(.*int: english.*?)\s*$/o) { $english = $1 } elsif (/^\s*(.*int: dutch.*?)\s*$/o) { $dutch = $1 } } close (LOG) } open (TEX,">texexec.tex") ; print TEX "\\starttext test \\stoptext" ; close (TEX) ; unlink ("texexec.tui") ; unlink ("texexec.tuo") ; system("texexec --interface=en texexec.tex > texexec.tmp") ; AnalyzeVersion ; system("texexec --once --interface=nl texexec.tex > texexec.tmp") ; AnalyzeVersion ; print "current distribution:\n\n" ; print "texexec : $texexec\n" ; print "texutil : $texutil\n" ; print "pdf(e)tex : $pdfetex\n" ; print "cont-en : $english\n" ; print "cont-nl : $dutch\n" ; print "\n" ; --=====================_8743512==_ Content-Type: text/plain; charset="us-ascii"; format=flowed ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf ------------------------------------------------------------------------- --=====================_8743512==_--