diff options
author | Rickard Green <[email protected]> | 2014-02-16 00:54:08 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2014-02-19 15:30:44 +0100 |
commit | 3fd4e3e770fbed95fd6fa2d547945ac71256339c (patch) | |
tree | a856f741c5d307d4e56334b650740d7e22073cbf /otp_build | |
parent | a37ea8849ab29cb8d15ab3bc5a3ba1fc16dd0276 (diff) | |
download | otp-3fd4e3e770fbed95fd6fa2d547945ac71256339c.tar.gz otp-3fd4e3e770fbed95fd6fa2d547945ac71256339c.tar.bz2 otp-3fd4e3e770fbed95fd6fa2d547945ac71256339c.zip |
Misc adjustments of OTP version
Diffstat (limited to 'otp_build')
-rwxr-xr-x | otp_build | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1216,8 +1216,12 @@ do_patch_app () echo "No OTP $otp_major_vsn installation in $target_dir" 1>&2 exit 1 fi + shift + otp_version=`cat "$target_dir/OTP_VERSION"` || { echo "Not able to read $target_dir/OTP_VERSION" 1>&2; exit 1; } + { echo "$otp_version" | sed "s|^\([^\*]*\)\**|\1\*\*|g" > $target_dir/OTP_VERSION; } 2>/dev/null || { echo "Not able to update $target_dir/OTP_VERSION" 1>&2; exit 1; } + # Build all applications to target for app in "$@"; do if [ "$app" = "erts" ] && [ -d $ERL_TOP/$app ]; then @@ -1430,9 +1434,9 @@ cd $ERL_TOP determine_version_controller -# Unset ERL_FLAGS and ERL_OTP<Major-VSN>_FLAGS during bootstrap to +# Unset ERL_FLAGS and ERL_OTP<OTP Release>_FLAGS during bootstrap to # prevent potential problems -otp_major_vsn=`cat erts/vsn.mk | grep SYSTEM_VSN | sed "s|SYSTEM_VSN[^=]*=[^0-9]*\([0-9]*\).*|\1|g"` +otp_major_vsn=`cat OTP_VERSION | sed "s|\([0-9]*\).*|\1|"` erl_otp_flags="ERL_OTP${otp_major_vsn}_FLAGS" unset ERL_FLAGS unset ${erl_otp_flags} |