unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@member.fsf.org>
Cc: emacs-devel@gnu.org
Subject: Re: sourcing environment
Date: Wed, 11 Oct 2006 04:35:16 -0400	[thread overview]
Message-ID: <umz83dzcr.fsf@member.fsf.org> (raw)
In-Reply-To: <20061010.150956.91284903.Takaaki.Ota@am.sony.com> (Tak Ota's message of "Tue, 10 Oct 2006 15:09:56 -0700 (PDT)")

Tak Ota <Takaaki.Ota@am.sony.com> writes:

> ... When switching gears frequently between different cross
> compilation environment it is common practice to set/change
> environment variables by sourcing shell scripts.

I don't use shell scripts for this; I use Emacs functions:

(defun ghdl-0.25 ()
  "ghdl only; run from a DOS shell"
  (interactive)
  (setq exec-path
        (list
         (expand-file-name "~/bin")
         (getenv "INSTALL_BIN")
         "c:/Gnu/Emacs/emacs-21.3/bin"
         "c:/Gnu/Ghdl-0.25/bin"
         "c:/Windows/system32"))
  (setenv "PATH" (mapconcat 'identity  exec-path  path-separator))
  )
  
(defun sal-no-network ()
  "set LM_LICENSE_FILE to just the hardware key, to avoid network delays"
  (interactive)
  (setenv "LM_LICENSE_FILE" "foo")
  )

-- 
-- Stephe

  reply	other threads:[~2006-10-11  8:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10 22:09 sourcing environment Tak Ota
2006-10-11  8:35 ` Stephen Leake [this message]
2006-10-11 16:07   ` Tak Ota
2006-10-11 19:00     ` Giorgos Keramidas
2006-10-11 19:15       ` Tak Ota
2006-10-11 20:22         ` Giorgos Keramidas

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=umz83dzcr.fsf@member.fsf.org \
    --to=stephen_leake@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).