ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Bowen <acbowen@princeton.edu>
Subject: Re: regenerating formats
Date: Sat, 15 Jul 2006 06:38:09 -0400	[thread overview]
Message-ID: <42221070-FFBA-4596-A85C-FC0ECA79D02F@princeton.edu> (raw)
In-Reply-To: <Pine.LNX.4.58.0607142038290.7827@gaston.pm>

On Jul 14, 2006, at 2:58 PM, Peter Münster wrote:

> On Fri, 14 Jul 2006, Alan Bowen wrote:
>
>> 	sudo texmfstart texexec --make --all
>> (which worked with the last ConTeXt installation)
>> and
>> 	sudo -H texmfstart texexec --make --all
>> failed with the error message
>> 	sudo: texmfstart: command not found.
>
>> Does it matter that I have the line
>> 	alias texmfstart='ruby /usr/local/teTeX/share/texmf.local/scripts/
>> context/ruby/texmfstart.rb'
>> in my .profile rather than an executable version of the texmfstart
>> script in my $PATH?
>
> Hello Alan,
> I doubt, that an alias is inherited by the shell of sudo.
>
> Here is one way, how to set up the ruby scripts without touching the
> ConTeXt-texmf tree (extracted from my tetex.spec in
> http://pmrb.free.fr/work/OS/ConTeXt/tetex/):
>
> mkdir -p /opt/teTeX/ruby-bin
> install texexec /opt/teTeX/ruby-bin
> ln -s ../texmf-context/scripts/context/ruby/texmfstart.rb \
> 	/opt/teTeX/ruby-bin/texmfstart
> for i in `unzip -l cont-tmf.zip | \
> 	sed -nre 's_^.*scripts/context/ruby/([^/]+)\.rb$_\1_p'`; do
> 	if [ "$i" != texexec -a "$i" != texmfstart ]; then
> 		ln -s texexec /opt/teTeX/ruby-bin/$i
> 	fi
> done
>
> And these 2 lines in the file "texexec":
> #!/bin/sh
> exec texmfstart `basename $0`.rb "$@"
>
> Then, /opt/teTeX/ruby-bin must come before the normal teTeX-bin in  
> PATH.
>
> Cheers, Peter
>
> -- 
> http://pmrb.free.fr/contact/
> _______________________________________________
>

Thanks, Peter! This is very helpful and much appreciated.

Alan

  reply	other threads:[~2006-07-15 10:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-14 18:23 Alan Bowen
2006-07-14 18:58 ` Peter Münster
2006-07-15 10:38   ` Alan Bowen [this message]
2006-07-14 19:35 ` Paul Hoffman
2006-07-15 10:39   ` Alan Bowen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42221070-FFBA-4596-A85C-FC0ECA79D02F@princeton.edu \
    --to=acbowen@princeton.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).