Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6b5667738b0dd82e691f9c2a5cc9fae8ff02d1d9 1 parent 3b52160
@vinoski vinoski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  configure.in
View
2  configure.in
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.