caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: "Christopher A. Watford" <christopher.watford@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Request: Windows installers
Date: Sat, 03 Sep 2005 03:34:20 +1000	[thread overview]
Message-ID: <1125682460.7192.26.camel@localhost.localdomain> (raw)
In-Reply-To: <8008871f0509020917509eadda@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

On Fri, 2005-09-02 at 12:17 -0400, Christopher A. Watford wrote:

> > I haven't been able to get it to work with OCAMLLIB="" either,
> > despite claims in the documentation that this is only needed
> > under Win98 etc, it seems to be needed on XP as well, and
> > it has to be correct. This is slightly nasty for my build
> > scripts .. I have to calculate the correct OCAMLLIB to use
> > for a given 'ocamlc/ocamlopt' and run it like
> > 
> > env OCAMLLIB=xxxx ocamlc ....
> > 
> > ... I'm not sure how to do that with Win32 shell CMD.EXE.
> 
> C:\> SET OCAMLLIB=xxx
> C:\> ocamlc ....

Ah, but that won't work if you need to call the system() function,
which requires a single line .. perhaps

SET OCAMLLIB=xxx && ocamlc ...

will work with CMD.EXE?

> You can use SetEnvironmentVariable() with windows before your system()
> calls if you would like.

I didn't mention .. the scripts are Python.. :)

I can use os.putenv() .. but that affects the current
process too. I can also pass the environment if I use

execle()

but that is a superior pain .. maybe i will have to write
an env.exe command for windows .. ;(

-- 
John Skaller <skaller at users dot sourceforge dot net>


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2005-09-02 17:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-31 22:03 skaller
2005-09-01  0:26 ` [Caml-list] " Christopher A. Watford
2005-09-01 12:57   ` skaller
     [not found]     ` <8008871f0509011123621c1d7a@mail.gmail.com>
     [not found]       ` <1125640801.7223.18.camel@localhost.localdomain>
2005-09-02 16:17         ` Christopher A. Watford
2005-09-02 17:34           ` skaller [this message]

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=1125682460.7192.26.camel@localhost.localdomain \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@yquem.inria.fr \
    --cc=christopher.watford@gmail.com \
    /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).