Permalink
Browse files

fix setting of ERTS_MAJOR and ERTS_MINOR

  • Loading branch information...
1 parent f5eb9d5 commit 297f2c94f8275f42279751b61e13ea7f961e438c @vinoski vinoski committed Jan 6, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 configure.in
View
@@ -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)

0 comments on commit 297f2c9

Please sign in to comment.