[erlang-questions] Joe's book, ~/.erlang and Makefiles

Rob Charlton <>
Mon May 11 00:35:18 CEST 2009


How about creating a user-defined boot script that doesn't call c:erlangrc?

- copy /usr/local/lib/erlang/bin/start.script to a local file - call it 
mystart.script
- edit it to remove the erlangrc line (it is right at the bottom)
- run erl and type systools:script2boot("mystart") then exit. This 
creates mystart.boot in the current folder
- start erl with erl -boot mystart

You can use erl -init_debug to confirm that it isn't calling c:erlangrc

I don't know how portable the idea is, particularly between different 
erlang versions, but you could perhaps provide your own boot script with 
your sources.

Rob

Andrew Thompson wrote:
> On Sun, May 10, 2009 at 12:01:38PM +0200, mats cronqvist wrote:
>   
>>   Apologies for being rather unhelpful, but what are you trying to
>>   accomplish here? Disable the evaluation of .erlang? Wouldn't it be
>>   easier to just do "rm ~/.erlang"?
>>
>>     
>
> That'd be fine if this was running on my machine, but I don't want to
> blindly remove other people's ~/.erlang just because they wanted to
> compile some of my software.
>
> Andrew
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>   


-- 
Rob Charlton
Savage Minds Ltd
+44 7970781034

skype: chocolatetpot
www.savageminds.com




More information about the erlang-questions mailing list