[Openmcl-devel] Openmcl script: Request for adding external sourcing of other shell scripts

Pascal J.Bourguignon pjb at informatimago.com
Fri Nov 19 10:17:59 PST 2004


Frank Gönninger,  PRION Consulting Services AG writes:
> I have to make sure that another shell script gets sourced from within the
> 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 thing
> 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).

This is usually done this way:

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


There's no reason to patch distributed programs for such a futil purpose.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
The world will now reboot; don't bother saving your artefacts.




More information about the Openmcl-devel mailing list