ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* getting context's version
@ 2002-09-17 10:07 Wybo Dekker
  2002-09-17 18:00 ` Tobias Burnus
  2002-09-17 18:28 ` Taco
  0 siblings, 2 replies; 19+ messages in thread
From: Wybo Dekker @ 2002-09-17 10:07 UTC (permalink / raw)


I want to check context's version in a perl script to verify that it's
recent enough. Is there a better way than this?:

#!/usr/bin/perl -w
open(IN,"echo '\\bye' |cont-en |") or
    die "Could not run cont-en\n";
while(<IN>) {
  /ver:\s+(\d+)\.(\d+)\.(\d+)/ and
    $version=sprintf("%4d%02d%02d",$1,$2,$3),last;
}
print "version=$version\n";

-- 
Wybo


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2002-09-21 17:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 10:07 getting context's version Wybo Dekker
2002-09-17 18:00 ` Tobias Burnus
2002-09-17 18:23   ` Wybo Dekker
2002-09-18  6:57     ` Hans Hagen
2002-09-18  8:41       ` Tobias Burnus
2002-09-18  8:59       ` Wybo Dekker
2002-09-18  9:17         ` Tobias Burnus
2002-09-18  9:47           ` Taco Hoekwater
2002-09-18 15:28             ` Wybo Dekker
2002-09-19 18:41               ` Simon Pepping
2002-09-20  8:06                 ` Taco Hoekwater
2002-05-20  8:56                   ` Hans Hagen
2002-09-20  9:32                     ` Tobias Burnus
2002-05-20 14:42                       ` Hans Hagen
2002-09-20 17:55                         ` Henning Hraban Ramm
2002-09-21 17:29                       ` Simon Pepping
2002-09-18  9:43         ` Taco Hoekwater
2002-09-17 18:28 ` Taco
2002-09-17 21:20   ` Wybo Dekker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).