summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-03-27 02:27:46 -0400
committerIan Moffett <ian@osmora.org>2025-03-27 02:27:46 -0400
commit65a31ede4eb06b4811a802f0d659aac3fd03333c (patch)
tree8c448b5811d1e11c19ab3a04b644fc536c71f831 /bootstrap
parentc772d185ddf06de7650ea3da2f644d4900de76b4 (diff)
build: bootstrap: Prepare environment
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap17
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 7d523b4..6186385 100755
--- a/bootstrap
+++ b/bootstrap
@@ -14,6 +14,14 @@ try_fetch() {
fi
}
+prepare() {
+ if [[ -d .git/ ]]
+ then
+ # Copy git hooks
+ cp -v builddeps/hooks/* .git/
+ fi
+}
+
fetch() {
try_fetch "git clone https://github.com/limine-bootloader/limine.git --branch=v6.x-branch-binary --depth=1" "stand/limine"
}
@@ -33,6 +41,15 @@ build() {
echo "----------------------------------"
echo
+echo " Preparing build environment... "
+echo
+echo "----------------------------------"
+echo -e "\n"
+
+prepare
+
+echo "----------------------------------"
+echo
echo " Fetching sources... "
echo
echo "----------------------------------"