From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71265 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: [PATCH] Small improvement for 'setuptex' Date: Thu, 22 Sep 2011 22:46:08 +0900 Message-ID: <20110922134608.GQ21773@smoon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Pd0ReVV5GZGQvF3a" X-Trace: dough.gmane.org 1316699199 14185 80.91.229.12 (22 Sep 2011 13:46:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 13:46:39 +0000 (UTC) To: General mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 22 15:46:31 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R6jbh-0008Pk-VJ for gctc-ntg-context-518@m.gmane.org; Thu, 22 Sep 2011 15:46:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EBA0ECAF37; Thu, 22 Sep 2011 15:46:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 851AJOXi0gU8; Thu, 22 Sep 2011 15:46:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3A49CAFAE; Thu, 22 Sep 2011 15:46:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 580F1CAFAE for ; Thu, 22 Sep 2011 15:46:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id e3j5v+LwZZ7Z for ; Thu, 22 Sep 2011 15:46:14 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 933A2CAF37 for ; Thu, 22 Sep 2011 15:46:14 +0200 (CEST) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8MDkCEL011245 for ; Thu, 22 Sep 2011 15:46:14 +0200 Original-Received: by eye13 with SMTP id 13so2061275eye.14 for ; Thu, 22 Sep 2011 06:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=j5zGUqUSm6X20lGsM9JEgeVnakRCSbTQDXknHK0gWOk=; b=Pbeb6kXp//D/JqkXOQs4y9U8/og/rM/4ZNswdB5Sc6y2ChtHUewda0j8McB5tjSedA 3ZM9fj5nOBeF/1k47ZaIFgfbjUj5l2hrA58dhgnqK5ZtQt6+lAPjwWGZlcFQDKFC3yCj vrSQoTmkqMVciCvKl8GgfhBnawDt6A0Ff4MZI= Original-Received: by 10.204.156.66 with SMTP id v2mr988254bkw.7.1316699172586; Thu, 22 Sep 2011 06:46:12 -0700 (PDT) Original-Received: from smoon ([188.168.157.119]) by mx.google.com with ESMTPS id m18sm8414853bkt.12.2011.09.22.06.46.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Sep 2011 06:46:11 -0700 (PDT) Mail-Followup-To: Vladimir Lomov , General mailing list for ConTeXt users Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFzNKd9K - 3f20ffca5c75 - 20110922 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71265 Archived-At: --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello. I'm using standard 'setuptex' file to set apropriate variables for my shell. I'd like to suggest small improvement for this file. See attached patch. P.S. The real use of this file is in my shell initialization scripts. It is sourced in specific way so I faced a situation when 'export' is required. Besides that unsetting unused variables also good habit to interactive session. --- WBR, Vladimir Lomov -- Violence is molding. --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="setuptex.patch" --- setuptex.orig 2011-09-22 22:36:37.000000000 +0900 +++ setuptex 2011-09-22 22:38:12.000000000 +0900 @@ -148,13 +148,16 @@ fi # ConTeXt binaries have to be added to PATH -TEXMFOS=$TEXROOT/texmf-$platform -PATH=$TEXMFOS/bin:$PATH +export TEXMFOS=$TEXROOT/texmf-$platform +export PATH=$TEXMFOS/bin:$PATH # TODO: we could set OSFONTDIR on Mac for example # not sure why this would be needed # export CTXMINIMAL=yes +# unset variables that won't be used lately +unset platform cpu system OWNPATH SCRIPTPATH ARGPATH + else echo "provide a proper tex root (like '. setuptex /something/tex')" ; fi --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --Pd0ReVV5GZGQvF3a--