Update 'bedrock-linux-99.99.99-x86_64.sh'

master
shark 5 years ago
parent 8f95c02dca
commit 5eb540253f

@ -11,18 +11,18 @@ git clone https://github.com/bedrocklinux/bedrocklinux-userland
cd bedrocklinux-userland
git checkout 0.7 -q
current_version="$(awk '{print$3}' </bedrock/etc/bedrock-release)"
newest_version=$(awk -F= '/^VERSION=/{print$2}' Makefile | sed 's/[a-z].*$//')git$(git log | grep -c "^commit")
newest_version="$(awk -F= '/^VERSION=/{print$2}' Makefile | sed 's/[a-z].*$//')git$(git log | grep -c '^commit')"
echo "Current Version: ${current_version}"
echo "Newest Version: ${newest_version}"
if ver_cmp_first_newer ${current_version} ${newest_version}; then
if ver_cmp_first_newer "${newest_version}" "${current_version}"; then
echo "Building Bedrock Linux version ${newest_version}"
else
if [ ${#current_version} -lt ${#newest_version} ]; then
echo "Building for the first time. Building Bedrock Linux version ${newest_version}"
else
echo "Up to date with the latest commit, nothing to do."
exit_success
fi
else
echo "Building Bedrock Linux version ${newest_version}"
fi
# Start the build process
make clean

Loading…
Cancel
Save