Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 1999 21:06:54 +0200
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        Jay Nelson <jdn@acp.qiv.com>
Cc:        Andreas Klemm <andreas@klemm.gtn.com>, Nik Clayton <nik@nothing-going-on.demon.co.uk>, freebsd-doc@FreeBSD.ORG
Subject:   Re: Sorry, found it explained during jadetex installation
Message-ID:  <19990530210654.A1835@titan.klemm.gtn.com>
In-Reply-To: <Pine.BSF.4.05.9905301306210.8523-100000@acp.qiv.com>; from Jay Nelson on Sun, May 30, 1999 at 01:09:10PM -0500
References:  <19990530193734.A36065@titan.klemm.gtn.com> <Pine.BSF.4.05.9905301306210.8523-100000@acp.qiv.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 30, 1999 at 01:09:10PM -0500, Jay Nelson wrote:
> On Sun, 30 May 1999, Andreas Klemm wrote:
> 
> [snip]
> 
> >What about patching the file automatically ?
> >Extract the value in question, compare it, adjust to
> >suggested value, if the original value is smaller than the
> >suggested one ...
> 
> Not a good idea. If someone has increased TeX's capacity beyond what
> jadetex needs, they could end up ambushed -- or at least "untuned".

You didn't read my message precisely ;-)
I talked about extracting the current settings
and upgrading only, when current settings are lower.
Or the other way around, if user already pushed settings to
a higher value as needed by jadetex, then leave values as they
are.

Should be not to difficult, to grep for the variable names
and to extract the value after the '=' sign. Then only
a if [ $xxx -lt number ] comparision and you are through ...

I'd pipe the whole config file through awk, and if it hit's
a line with a variable we want to check, you can do the
necessary testing and doing changes by doing something like
	print $1,"=", higher_number
	or same number
	print $1,"=", $3

-- 
Andreas Klemm                               http://www.FreeBSD.ORG/~andreas
                                  http://www.freebsd.org/~fsmp/SMP/SMP.html
                                powered by Symmetric MultiProcessor FreeBSD


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990530210654.A1835>