This sounds like you want to make sure that you run a specific minimal
context version. In latex this may be checked by the macro code:

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{article}
              [2000/05/19 v1.4b
 Standard LaTeX document class]

and then when you say \documentclass{article}[2002/06/01], latex warns
you that you run an older version than required. This is a solution at
the root, so I think it is the way to go.

Simon

On Wed, Sep 18, 2002 at 05:28:13PM +0200, Wybo Dekker wrote:
> #!/usr/bin/perl -w
> 
> sub test_context_version {
>     my $required=shift;
>     chomp (my $fmt=`kpsewhich cont-en.efmt`);
>     chomp (my $tex=`kpsewhich context.tex`);
>     (stat $fmt)[10] < (stat $tex)[10] and
>         die "Your context formats need (re)generation:\n";
>     open(IN,$tex) or do {
>         warn "can't find context.tex";
>         return 1;
>     };
>     while(<IN>) {
>         if ( /contextversion\{(\d+)\.(\d+)\.(\d+)\}/ ) {
>             my $have;
>             $have=sprintf('%4d%02d%02d',$1,$2,$3);
>             $have < $required and
>                 warn "Your ConTeXt is too old ($have); you need $required\n";
>             return 1;
>             last;
>         }
>     }
>     return 0;
> }

-- 
Simon Pepping
email: [EMAIL PROTECTED]

Reply via email to