Permalink
Browse files

filter erl output for setting ERLDIR

A user reported a problem with yaws-1.89 where ERLDIR was getting set
incorrectly because his R14B01 Erlang installation was emitting the
string "Running Erlang" as part of the output used to set the ERLDIR
variable. (I don't know why, since that string doesn't appear anywhere
in the sources as far as I can see.) Change the command used to set
ERLDIR so that only the last line of output is kept.
  • Loading branch information...
1 parent 3b52160 commit 6b5667738b0dd82e691f9c2a5cc9fae8ff02d1d9 @vinoski vinoski committed Jan 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 configure.in
View
@@ -79,7 +79,7 @@ AC_DEFUN([BT_ERL_LIB_VSN],
-ERLDIR=`"${ERL}" -noshell -eval 'io:format("~s",[[code:root_dir()]]), erlang:halt().'`
+ERLDIR=`"${ERL}" -noshell -eval 'io:format("~s~n",[[code:root_dir()]]), erlang:halt().' | tail -1`
ERL_DLL_LIB="${ERLDIR}/usr/lib/erl_dll.lib"

0 comments on commit 6b56677

Please sign in to comment.