From 2101e5f648f56e5fe9e98701ad09a822b5dbf55c Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Tue, 13 Sep 2022 04:31:27 -0400 Subject: [PATCH] Make build script limine remote HEAD branch automatically adjust based on new LIMINE_BINARY_BRANCH variable. --- build/build-iso.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/build-iso.sh b/build/build-iso.sh index c44a18c0..6b2bd0de 100755 --- a/build/build-iso.sh +++ b/build/build-iso.sh @@ -78,16 +78,22 @@ umount_tempdisk echo "Building Distro ISO ..." qemu-system-x86_64 -machine q35,accel=kvm -drive format=raw,file=$TMPDISK -m 1G -rtc base=localtime -smp 4 -device isa-debug-exit +LIMINE_BINARY_BRANCH="v4.x-branch-binary" + if [ -d "limine" ] then cd limine + git remote set-branches origin $LIMINE_BINARY_BRANCH + git fetch + git remote set-head origin $LIMINE_BINARY_BRANCH + git switch $LIMINE_BINARY_BRANCH git pull rm limine-deploy rm limine-version cd .. fi if [ ! -d "limine" ]; then - git clone https://github.com/limine-bootloader/limine.git --branch=v4.x-branch-binary --depth=1 + git clone https://github.com/limine-bootloader/limine.git --branch=$LIMINE_BINARY_BRANCH --depth=1 fi make -C limine