[erlang-questions] R12 snapshots

Anthony Shipman <>
Wed Oct 31 08:55:09 CET 2007


When I make an RPM from the erlang distribution my install section looks like 
the following. It would be nice if the system were improved so that this 
isn't necessary.

%install
rm -rf $RPM_BUILD_ROOT
make INSTALL_PREFIX=$RPM_BUILD_ROOT install

#   Correct the symlinks
pushd $RPM_BUILD_ROOT/usr/local/bin
for f in dialyzer epmd erl erlc escript run_erl to_erl typer
do
    if [ -x $f ]
    then
	/bin/rm $f
	ln -s /usr/local/lib/erlang/bin/$f $f
    fi
done

cd ../lib/erlang/bin
if [ -x epmd ]
then
    /bin/rm epmd
    ln -s ../erts-5.5.5/bin/epmd epmd
fi

#   Correct the paths in the scripts
for f in erl start
do
    if [ -x $f ]
    then
	sed "s,$RPM_BUILD_ROOT,," <$f >$$
	mv $$ $f
	chmod 755 $f
    fi
done

popd



-- 
Anthony Shipman                    Mamas don't let your babies 
                   grow up to be outsourced.



More information about the erlang-questions mailing list