Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix setting of ERTS_MAJOR and ERTS_MINOR

  • Loading branch information...
commit 297f2c94f8275f42279751b61e13ea7f961e438c 1 parent f5eb9d5
@vinoski vinoski authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 configure.in
View
6 configure.in
@@ -99,9 +99,9 @@ fi
AC_SUBST(ERLDIR)
AC_SUBST(ERL_DLL_LIB)
-
-ERTS_MINOR=`ls "${ERLDIR}" | grep erts | sed 's/erts-.\.//' | sed 's/\..*//'`
-ERTS_MAJOR=`ls "${ERLDIR}" |grep erts | sed 's/erts-//' | sed 's/\..*//'`
+erts_vsn=`ls "${ERLDIR}" | grep ^erts | tail -1 | sed 's/erts-//'`
+ERTS_MINOR=`echo $erts_vsn | sed -e 's/^.\.//' -e 's/\..*//'`
+ERTS_MAJOR=`echo $erts_vsn | sed 's/\..*//'`
AC_SUBST(ERTS_MINOR)
AC_SUBST(ERTS_MAJOR)
Please sign in to comment.
Something went wrong with that request. Please try again.