From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44862 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: setuptex (csh) Date: Sun, 19 Oct 2008 22:24:35 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <200810192224.35854.alan.braslau@cea.fr> References: <011C96A0-6DCB-48CA-8479-33F056C97DB4@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_De5+Iv6RheJBCTA" X-Trace: ger.gmane.org 1224496818 28052 80.91.229.12 (20 Oct 2008 10:00:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 10:00:18 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 20 12:01:12 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Krerv-0000kj-6f for gctc-ntg-context-518@m.gmane.org; Sun, 19 Oct 2008 22:27:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 357CB1FB95; Sun, 19 Oct 2008 22:26:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29507-03-14; Sun, 19 Oct 2008 22:25:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B996E1FB6D; Sun, 19 Oct 2008 22:25:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0F2D1FB6B for ; Sun, 19 Oct 2008 22:25:11 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00082-02-2 for ; Sun, 19 Oct 2008 22:24:36 +0200 (CEST) Original-Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by ronja.ntg.nl (Postfix) with ESMTP id DCF7F1FB72 for ; Sun, 19 Oct 2008 22:24:36 +0200 (CEST) Original-Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 98DD832A829 for ; Sun, 19 Oct 2008 22:24:36 +0200 (CEST) Original-Received: from drec-hb-001817.localnet (cev75-1-81-57-248-225.fbx.proxad.net [81.57.248.225]) by smtp8-g19.free.fr (Postfix) with ESMTP id 7761E32A837 for ; Sun, 19 Oct 2008 22:24:36 +0200 (CEST) User-Agent: KMail/1.10.1 (Linux/2.6.26; KDE/4.1.2; i686; ; ) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:44862 Archived-At: --Boundary-00=_De5+Iv6RheJBCTA Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline As a fan of (t)csh, I have adapted setuptex for (t)csh: "source setuptex.csh". It would be useful (at least for one user) to include this in the context minimals, but of course this would require that it be maintained as needs of setuptex, (ba)sh version, evolve... Thanks, -- Alan --Boundary-00=_De5+Iv6RheJBCTA Content-Type: application/x-csh; name="setuptex.csh" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="setuptex.csh" # Example setup file for ConTeXt distribution # # Author: Hans Hagen # Patches: Arthur R. & Mojca M. # (t)csh version: Alan B. # # Usage : # source setuptex.csh [texroot] # # On the first run also execute: # mktexlsr # texexec --make --alone # # PLATFORM # # we will try to guess the platform first # (needs to be kept in sync with first-setup.sh and mtxrun) # if yours is missing, let us know set system=`uname -s` set cpu=`uname -m` switch ( $system ) # linux case Linux: switch ( $cpu ) case i*86: set platform="linux" breaksw case x86_64: case ia64: set platform="linux-64" breaksw case ppc: set platform="linux-ppc" breaksw default: set platform="unknown" endsw breaksw # Mac OS X case Darwin: switch ( $cpu ) case ppc*: case powerpc: case power*: case Power*: set platform="osx-ppc" breaksw case i*86: set platform="osx-intel" breaksw default: set platform="unknown" endsw breaksw # FreeBSD case FreeBSD: case freebsd: switch ( $cpu ) case i*86: set platform="freebsd" breaksw case x86_64: set platform="freebsd" breaksw default: set platform="unknown" endsw breaksw # SunOS/Solaris case SunOS: switch ( $cpu ) case sparc: set platform="sun" breaksw case i86pc: set platform="sunos-intel" default: set platform="unknown" endsw breaksw # Other default: set platform="unknown" endsw if ( $platform == "unknown" ) then echo Error: your system \"$system $cpu\" is not supported yet. echo Please report to the ConTeXt mailing-list (ntg-context@ntg.nl). endif # # PATH # # this resolves to path of the setuptex script # We use $0 for determine the path to the script, except for bash and (t)csh where $0 # always is bash or (t)csh. # but one can also call # . setuptex path-to-tex-tree # first check if any path has been provided in the argument, and try to use that one if ( $# > 0 ) then set ownpath=$1 else # $_ should be `history -h 1` but doesn't seem to work... set cmd=`history -h 1` if ( $cmd[2]:h == $cmd[2]:t ) then set ownpath=$cwd else set ownpath=$cmd[2]:h endif unset cmd endif if ( -f "$ownpath/texmf/tex/plain/base/plain.tex" ) then setenv TEXROOT $ownpath unset ownpath echo Setting \"$TEXROOT\" as TEXROOT. else echo \"$ownpath\" is not a valid TEXROOT path. echo There is no file \"$ownpath/texmf/tex/plain/base/plain.tex\". echo Please provide a proper tex root (like \"source setuptex /path/tex\") unset ownpath exit endif # binaries & formats setenv TEXMFOS $TEXROOT/texmf-$platform # base TeX files & fonts setenv TEXMFMAIN $TEXROOT/texmf # ConTeXt setenv TEXMFCONTEXT $TEXROOT/texmf-context # cache for LuaTeX setenv TEXMFCACHE $TEXROOT/texmf-cache # user additions or modifications setenv TEXMFLOCAL $TEXROOT/texmf-local # optional (by/for Hans) setenv TEXMFFONTS $TEXROOT/texmf-fonts setenv TEXMFEXTRA $TEXROOT/texmf-extra setenv TEXMFPROJECT $TEXROOT/texmf-project # FIXME # Note also that TMP is not necessairly set... if ( $?TMP == 0 ) then setenv TMP /tmp endif setenv TEXMFVAR $TMP/texmf-var setenv VARTEXMF $TEXMFVAR unsetenv CTXDEVTXPATH CTXDEVMPPATH CTXDEVMFPATH unsetenv CTXDEVPLPATH CTXDEVRBPATH CTXDEVPYPATH CTXDEVJVPATH # the next lines fail on dec alpha os's, so there you need # to comment them (bug traced down by kees van marle/martin # corrino) setenv HOMETEXMF /nonexist setenv TEXMFCNF \$TEXROOT/texmf\{-local,-context,\}/web2c setenv TEXMF \{\$TEXMFPROJECT,\$TEXMFFONTS,\$TEXMFLOCAL,\$TEXMFOS,\$TEXMFCONTEXT,\$TEXMFEXTRA,\!\!\$TEXMFMAIN\} setenv TEXMFDBS \{\$TEXMFPROJECT,\$TEXMFFONTS,\$TEXMFLOCAL,\$TEXMFOS,\$TEXMFCONTEXT,\$TEXMFEXTRA,\!\!\$TEXMFMAIN\} setenv TEXFORMATS \$TEXMFOS/web2c\{/\$engine,\} setenv MPMEMS \$TEXMFOS/web2c\{/\$engine,\} unsetenv TEXINPUTS MPINPUTS MFINPUTS setenv PATH $TEXMFOS/bin:$PATH # TODO: OSFONTDIR if ( $?RUBYLIB == 0 ) then setenv RUBYLIB $TEXMFCONTEXT/scripts/context/ruby else setenv RUBYLIB $TEXMFCONTEXT/scripts/context/ruby:$RUBYLIB endif which ruby > /dev/null if ( $status ) then echo Warning: the package \"ruby\" is not located. endif # just to make sure that the binaries are executable if ( -w "$TEXMFOS/bin/texmfstart" && ! -x "$TEXMFOS/bin/texmfstart" ) then echo Making binaries executable... chmod 755 $TEXMFOS/bin/* endif setenv CTXMINIMAL yes --Boundary-00=_De5+Iv6RheJBCTA 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --Boundary-00=_De5+Iv6RheJBCTA--