OS X Installer
Michel Fortin
michel.fortin at michelf.com
Fri Aug 7 06:38:58 PDT 2009
On 2009-08-07 08:05:04 -0400, Jacob Carlborg <doob at me.com> said:
> On 8/3/09 14:32, Anders F Björklund wrote:
>> Michel Fortin wrote:
>>>> I think I like /usr/local best.
>>>
>>> I like /usr/local best too.
>>
>> The objection (if any) was mostly about "/usr/local/dmd/osx/bin"
>> vs /usr/local/bin, but using /usr/local/{dmd,dmd2} should be OK.
>
> I was thinking about using /usr/local/{dmd,dmd2} and then create
> symlinks to /usr/local/bin. But that will create problems with the
> dmd.conf because it also needs a symlink in /usr/local/bin and then the
> conf file for dmd and dmd1 will conflict.
The solution is to create a "symlink program" and drop it in
/usr/local/bin. I know it works; I wrote one to do just that:
#include <unistd.h>
int main(unsigned int argc, char **argv) {
argv[0] = "/usr/local/dmd/osx/bin/dmd";
execv("/usr/local/dmd/osx/bin/dmd", argv);
}
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list