[From nobody Tue Feb 5 01:37:25 2008 X-Envelope-From: <fgoenninger@prion.de> X-Envelope-To: <openmcl-devel@clozure.com> Received: from xchg.prion.de (ad96eadfa.dsl.de.colt.net [217.110.173.250]) by clozure.com; Received: by xchg.prion.de (Postfix, from userid 65534) id 0B9D35340E5; Fri, 19 Nov 2004 21:37:58 +0100 (CET) Received: from [192.168.2.121] (pD9E6585E.dip.t-dialin.net [217.230.88.94]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by xchg.prion.de (Postfix) with ESMTP id 9CA5353406D; Fri, 19 Nov 2004 21:37:55 +0100 (CET) User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Fri, 19 Nov 2004 21:37:54 +0100 Subject: Re:[Openmcl-devel] Openmcl script: Request for adding external sourcing of other shell scripts From: "Frank G=?ISO-8859-1?B?9g==?=nninger, PRION Consulting Services AG" <fgoenninger@prion.de> To: <pjb@informatimago.com> Cc: <openmcl-devel@clozure.com> Message-ID: <BDC41832.7FE%fgoenninger@prion.de> In-Reply-To: <16798.14551.826086.431853@thalassa.informatimago.com> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Pascal, Am 19.11.2004 19:17 Uhr schrieb "Pascal J.Bourguignon" unter <pjb@informatimago.com>: > Frank G=F6nninger, PRION Consulting Services AG writes: >> I have to make sure that another shell script gets sourced from within t= he >> openmcl script. This is due to the fact that the other script (it being = part >> of a library I have to load within OpenMCL: ImageMagick - but the same t= hing >> is true for others as well) sets some environment variables that have to= be >> set when loading the external shared library (.dylib) (done via UFFI). >=20 > This is usually done this way: >=20 > cat > my-entry-point <<EOF > #!/bin/bash > . whatever-rc-file-i-must-source > . some-more > exec openmcl $@ > EOF > chmod 755 my-entry-point > ./my-entry-point Well, yes, (shaking my head : have done that sort of stuff many times and I am wondering why that simple solution didn't come to mind...) ;-) >=20 >=20 > There's no reason to patch distributed programs for such a futil purpose Ok, ok, understood. Please excuse me having bothered you, Sir. Frank ]