mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-21 20:51:31 +01:00
automatic search python3, by Lucky1978
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
b093c69db0
commit
c99a1d91ab
6
buildme
6
buildme
@ -26,7 +26,7 @@ declare -r SYSNAME="$(uname)"
|
||||
MYTOOLCHAIN=${1:-GCC53}
|
||||
revision=$(git describe --tags $(git rev-list --tags --max-count=1))
|
||||
lsha1="not a git repo"
|
||||
pyversion=$(echo $COL_CYAN"Installed Python version: "$COL_WHITE$(/usr/local/bin/python3 --version))
|
||||
pyversion=$(echo $COL_CYAN"Installed Python version: "$COL_WHITE$($(which python3) --version))
|
||||
pynone=$(echo -e "$COL_RED Python3 seems missing on this machine, it is required to build Clover ")
|
||||
export DIR_OUT=${DIR_OUT:-"$CLOVERROOT"/toolchain/tools/output}
|
||||
export DIR_SCT=${DIR_SCT:-${CLOVERROOT}/toolchain/tools/Scripts}
|
||||
@ -647,12 +647,12 @@ Utilities
|
||||
menu() {
|
||||
echo
|
||||
echo -e $COL_GREEN" ------------------------------------------------------------------------------"
|
||||
if [[ ! -x "/usr/local/bin/python3" ]]; then
|
||||
if [[ ! -x "$(which python3)" ]]; then
|
||||
echo -e " ${pynone}"
|
||||
fi
|
||||
echo -e "$COL_GREEN 🍀 Clover r${revision}$COL_WHITE (SHA: $lsha1)"
|
||||
echo -e "$COL_CYAN TOOLCHAIN: $MYTOOLCHAIN (override example: './buildme XCODE8')"
|
||||
if [[ -x "/usr/local/bin/python3" ]]; then
|
||||
if [[ -x "$(which python3)" ]]; then
|
||||
echo -e $COL_GREEN" ------------------- ${pyversion}$COL_GREEN ------------------ "$COL_RESET
|
||||
echo -e "\n\n\n\n\n\n\n\n"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user