[M3devel] Multiple CM3_ROOTs

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Sun Jan 18 05:50:16 CET 2009


Hi Peter:
what I learned is that the cm3 compiler finds it's config file in the same directory of the cm3 compiler executable, otherwise it reports an error (about it).
I know from cm3 -? that:
from http://www.opencm3.net/doc/help/cm3/cm3-quickref.html
environment variables:
  M3CONFIG       platform dependent configuration file to use (cm3.cfg)
                 used if no suitable file is found in the local packageHowever I don't how can be used the compiler to ship and compile according the abstracted config files made by Jay specially in the NT386 and derived platforms (I guess would be nice to set that in the command itself like select to alternative not common configurations of graphic libs  or back ends, etc, ...) with the same libm3 and m3core.

Thanks in advance
--- El sáb, 17/1/09, Peter Eiserloh <eiserlohpp at yahoo.com> escribió:
De: Peter Eiserloh <eiserlohpp at yahoo.com>
Asunto: [M3devel] Multiple CM3_ROOTs
Para: m3devel at elegosoft.com
Fecha: sábado, 17 enero, 2009 10:09

Hi Tony and Gang,

The hypothetical scenario is a system providing multiple
user accounts.  The sysadmin will install a released
version of CM3, not a daily snapshot.  Any user should be
able to install a daily snapshot, and old one, or a custom
version, for their particular use.  This would go within
a directory of their choosing (within their personal HOME).

These users, may have many customized versions of libm3
(and m3core), and hence many installations of an M3
compiler.  

A git repository has already been imported from the main
CVS  repository at elego.  Any user (at the moment thats
just me) may create any number of branches and play with
the code.

How can I ship to a different CM3_ROOT, than the one that
built it?  

When using a different CM3_ROOT than the standard one, the
user would obviously have to set their PATH and CM3
environment variables appropriately.  How does the cm3 
compiler frontend know the path to its config file?
Does it walk argv[0] up the directory chain, and use the
PATH to find itself, or is the path build-in?  Does it use
the environment variable CM3 if found?


+--------------------------------------------------------+
| Peter P. Eiserloh                                      |
+--------------------------------------------------------+


      



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090117/db221b53/attachment-0002.html>


More information about the M3devel mailing list