basho/riak — pull request #245 by jaredmorrow (2012-11-17 08:27:35+00:00)
Title: Base architecture off of erlc binary class in OSX

Like Solaris, OSX can have both i386 and x86_64 run natively
no matter how the kernel is compiled. Using `uname` to determine
the architecture of the Riak package on OSX isn't correct on
OSX machines that report "i386" from `uname -m` but have Erlang
compiled for 64bit.

This method uses `file` to determine the architecture of the
`erlc` binary that will be in the path of the build since Erlang
is required to build Riak. This way, the package architecture
will match the erlang architecture everytime.