From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29705 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: updating context on Ubuntu 6.06 Date: Wed, 26 Jul 2006 16:17:00 +0100 Message-ID: References: <44C737BA.9070702@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153928976 29765 80.91.229.2 (26 Jul 2006 15:49:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2006 15:49:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 26 17:49:31 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1G5ld7-0007an-NX for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jul 2006 17:49:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 83E811FCF3; Wed, 26 Jul 2006 17:48:58 +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 00441-06-3; Wed, 26 Jul 2006 17:48:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A9A71FDCC; Wed, 26 Jul 2006 17:17:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ADF5A1FDCC for ; Wed, 26 Jul 2006 17:17:05 +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 32208-01-3 for ; Wed, 26 Jul 2006 17:17:02 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id B75B61FDCA for ; Wed, 26 Jul 2006 17:17:02 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1G5l89-0006oh-2C; Wed, 26 Jul 2006 16:17:01 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1G5l88-0002l7-00; Wed, 26 Jul 2006 16:17:00 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Wed, 26 Jul 2006 11:36:58 +0200." <44C737BA.9070702@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:29705 Archived-At: > >>1. (optional cleanup) Delete the old Context-installed files in > >> ~/texmf/. This step is optional, but I do it so that I can track the > > I am not so sure that step is optional. Because if the preinstalled > version had a cont-sys.tex or cont-usr.tex, then this step may be > required to make sure you are not using an out-of-date version of > these files. Good point, thanks. I'll incorporate it into the eventual wiki page. > A somehwat more flexible version is > > #!/bin/sh > ruby `kpsewhich --format='texmfscripts' texmfstart.rb` $@ > > (also notice the lack of quotes around $@) According to the bash man entry: @ Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, each parameter expands to a separate word. That is, "$@" is equivalent to "$1" "$2" ... So if you ran texmfstart with texmfstart --option="hi there" then the $@ form would produce texmfstart.rb --option=hi there which would leave 'there' standing alone as a second argument. Whereas the "$@" form would produce texmfstart.rb "--option=hi there" This second form is what you want, no? > > $ texmfstart ctxtools --updatecontext > > kpsewhich: option `--expand-var' requires an argument > > Do not worry about that until the rest of the install is correct, it > may start working automagically. It didn't work magically, but Jano Kula's suggestion about TEXMFLOCAL made it work. I looked at the TEXMFLOCAL in the /etc/texmf/texmf.cnf and did: TEXMFLOCAL=/usr/local/share/texmf texmfstart ctxtools --updatecontext That worked fine except now there's version clash. During the update it said CtxTools | updating /usr/local/share/texmf and it downloaded the cont-tmf.zip there and unzipped it, remade the formats, and put them under ~/.texmf-var. So now the formats are based on the new context (2006.07.24) but for example, $ texmfstart ctxtools --contextversion CtxTools | context version: 2006.07.14 12:08 (/home/sanjoy/texmf/tex/context/base/context.tex) CtxTools | context version: 2006.07.14 12:08 (/home/sanjoy/texmf/tex/context/base/cont-new.tex) So texmfstart is finding the older source files in ~/texmf (from the 2006.07.14 update) although the formats themselves are newer. And trying a simple file gives: $ texexec t ... ConTeXt ver: 2006.07.14 12:08 fmt: 2006.7.26 int: english mes: english which worked fine, I guess since the two versions are sufficiently compatible. To avoid this problem, is it possible to put the new version in ~/texmf instead of in TEXMFLOCAL? Although in ~/texmf may be wrong for others, so it's a difficult problem... -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.