echo"=> make is not available. Please install 'build-essential' package with 'sudo apt-get install build-essential' command, then retry uCoin installation."
exit 1
fi
if ucoin_is_debian_install;then
echo"=> make is not available. Please install 'build-essentials' package with 'apt-get install build-essential' command as root, then retry uCoin installation."
exit 1
fi
fi
if! ucoin_has "g++";then
if ucoin_is_ubuntu_install;then
echo"=> g++ is not available. Please install 'build-essential' package with 'sudo apt-get install build-essential' command, then retry uCoin installation."
exit 1
elif ucoin_is_debian_install;then
echo"=> g++ is not available. Please install 'build-essentials' package with 'apt-get install build-essential' command as root, then retry uCoin installation."
exit 1
else
echo"=> g++ is not available"
fi
return 11
fi
if! ucoin_has "python";then
if ucoin_is_ubuntu_install;then
echo"=> python is not available. Please install 'build-essential' package with 'sudo apt-get install build-essential' command, then retry uCoin installation."
exit 1
elif ucoin_is_debian_install;then
echo"=> python is not available. Please install 'build-essentials' package with 'apt-get install build-essential' command as root, then retry uCoin installation."
exit 1
else
echo"=> python is not available"
fi
return 11
fi
local PREVIOUS_PATH
local PREVIOUS_PATH
PREVIOUS_PATH=$PATH
PREVIOUS_PATH=$PATH
if ucoin_has "git";then
# Git is here: clone repository
if[-d"$UCOIN_DIR/.git"];then
if[-d"$UCOIN_DIR/.git"];then
echo"=> ucoin is already installed in $UCOIN_DIR, trying to update using git"
echo"=> ucoin is already installed in $UCOIN_DIR, trying to update using git"