Skip to content

Commit

Permalink
Fix release.log
Browse files Browse the repository at this point in the history
  • Loading branch information
dehesselle committed Mar 13, 2021
1 parent f6c93f9 commit 658dc6e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 010-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ fi

#---------------------------------------------------- check recommended versions

sys_check_ver
sys_ver_check
6 changes: 1 addition & 5 deletions 110-sysprep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,4 @@ ccache_configure

#------------------------------------------ log relevant versions to release.log

mkdir -p "$VAR_DIR"/log

for var in MACOS_VER SDK_VER TOOLSET_VER WRK_DIR XCODE_VER; do
echo "$var = $(eval echo \$$var)" >> "$VAR_DIR"/log/release.log
done
sys_ver_log
13 changes: 12 additions & 1 deletion packages/sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SYS_XCODE_VER_RECOMMENDED=12.4

### functions ##################################################################

function sys_check_ver
function sys_ver_check
{
# Check version recommendations.

Expand All @@ -58,3 +58,14 @@ function sys_check_ver
echo_w " your Python version: $SYS_PYTHON_VER"
fi
}

function sys_ver_log
{
# Create release.log file.

mkdir -p "$VAR_DIR"/log

for var in SYS_MACOS_VER SYS_SDK_VER SYS_XCODE_VER VERSION WRK_DIR; do
echo "$var = $(eval echo \$$var)" >> "$VAR_DIR"/log/release.log
done
}

0 comments on commit 658dc6e

Please sign in to comment.