|
|
@ -1,8 +1,6 @@
|
|
|
|
#!/bedrock/libexec/busybox sh
|
|
|
|
#!/bedrock/libexec/busybox sh
|
|
|
|
|
|
|
|
|
|
|
|
. /bedrock/share/common-code
|
|
|
|
. /bedrock/share/common-code
|
|
|
|
|
|
|
|
|
|
|
|
if which brl > /dev/null 2>&1; then
|
|
|
|
|
|
|
|
echo "Fetching latest commits from repository..."
|
|
|
|
echo "Fetching latest commits from repository..."
|
|
|
|
if [ -d /bedrock/cache/bedrocklinux-userland ]; then
|
|
|
|
if [ -d /bedrock/cache/bedrocklinux-userland ]; then
|
|
|
|
less_lethal_rm_rf /bedrock/cache/bedrocklinux-userland
|
|
|
|
less_lethal_rm_rf /bedrock/cache/bedrocklinux-userland
|
|
|
@ -17,7 +15,6 @@ if which brl > /dev/null 2>&1; then
|
|
|
|
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 "Current Version: ${current_version}"
|
|
|
|
echo "Newest Version: ${newest_version}"
|
|
|
|
echo "Newest Version: ${newest_version}"
|
|
|
|
|
|
|
|
|
|
|
|
if ver_cmp_first_newer ${current_version} ${newest_version}; then
|
|
|
|
if ver_cmp_first_newer ${current_version} ${newest_version}; then
|
|
|
|
if [ ${#current_version} -le ${#newest_version} ]; then
|
|
|
|
if [ ${#current_version} -le ${#newest_version} ]; then
|
|
|
|
echo "Building for the first time. Building Bedrock Linux version ${newest_version}"
|
|
|
|
echo "Building for the first time. Building Bedrock Linux version ${newest_version}"
|
|
|
@ -37,8 +34,4 @@ if which brl > /dev/null 2>&1; then
|
|
|
|
make SKIPSIGN=true -j $(nproc) BEDROCK_VERSION="${newest_version}"
|
|
|
|
make SKIPSIGN=true -j $(nproc) BEDROCK_VERSION="${newest_version}"
|
|
|
|
/bedrock/libexec/busybox sh "bedrock-linux-${newest_version}-$(uname -m).sh" --force-update
|
|
|
|
/bedrock/libexec/busybox sh "bedrock-linux-${newest_version}-$(uname -m).sh" --force-update
|
|
|
|
# Maybe clean up here in the future
|
|
|
|
# Maybe clean up here in the future
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Bedrock Linux is not installed!"
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit_success
|
|
|
|
exit_success
|