[M3devel] Reasoning for /usr/local/cm3 ?

Rodney M. Bates rodney.m.bates at cox.net
Wed Sep 23 20:53:49 CEST 2009


I've had this around for a while.  Don't know how portable it is.
It's mainly a main executable wrapper for, and
delegates the real work to, FS.GetAbsolutePathname,
which, if not fully portable, ought to be fixed so it is. 

It works on LINUXLIBC6 and AMD64_LINUX. 

It also changes backslashes to forward slashes.
Maybe better for general script use if it returned
a return code if things go awry.  

jay.krell at cornell.edu wrote:
> Upon further thought symlink might not work. We can make it work on 
> some systems e.g. Mac and cygwin. Problem I see is, how does one find 
> the executable's fullpath? If the symlink source is in argv[0] then no 
> posix portable way. I was looking at this for finding cm3.cfg.
>
>  -jay/phone
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AbsPath.m3
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090923/f8dee3e5/attachment-0004.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: m3makefile
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090923/f8dee3e5/attachment-0005.ksh>


More information about the M3devel mailing list