From owner-freebsd-doc Sun May 30 12: 7:17 1999 Delivered-To: freebsd-doc@freebsd.org Received: from picalon.gun.de (picalon.gun.de [192.109.159.1]) by hub.freebsd.org (Postfix) with ESMTP id 3462D14F74 for ; Sun, 30 May 1999 12:07:14 -0700 (PDT) (envelope-from andreas@klemm.gtn.com) Received: from klemm.gtn.com (pppak04.gtn.com [194.231.123.169]) by picalon.gun.de (8.8.6/8.8.6) with ESMTP id VAA01400; Sun, 30 May 1999 21:07:12 +0200 (MET DST) Received: (from andreas@localhost) by klemm.gtn.com (8.9.3/8.9.3) id VAA02086; Sun, 30 May 1999 21:06:54 +0200 (CEST) (envelope-from andreas) Date: Sun, 30 May 1999 21:06:54 +0200 From: Andreas Klemm To: Jay Nelson Cc: Andreas Klemm , Nik Clayton , freebsd-doc@FreeBSD.ORG Subject: Re: Sorry, found it explained during jadetex installation Message-ID: <19990530210654.A1835@titan.klemm.gtn.com> References: <19990530193734.A36065@titan.klemm.gtn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Jay Nelson on Sun, May 30, 1999 at 01:09:10PM -0500 X-Operating-System: FreeBSD 3.2-STABLE SMP X-Disclaimer: A free society is one where it is safe to be unpopular Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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