.gitcheck: re-write entirely. force global config.

the way the old script worked was extremely hacky

it's cleaner just to make the user configure git

i haven't used anything from the old .gitcheck script,
which is now deleted. i completely re-wrote this, in
a much simpler way.

this is less maintenance now, when things change in
the upstream projects. coreboot makes heavy use of git
within its build system

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-08-27 17:57:30 +01:00
parent 355eb765ff
commit 4a280c629f
6 changed files with 33 additions and 87 deletions
+2 -3
View File
@@ -44,9 +44,10 @@ main()
err "running lbmk as root as not permitted"
fi
./checkgit || err "Please read: https://libreboot.org/docs/build/"
buildpath="./script/${0##*/}"
./.gitcheck || err "/.gitcheck call from main, in /lbmk"
[ "${mode}" = "help" ] && usage ${0} && exit 0
[ "${mode}" = "list" ] && ./build command options "${buildpath}" && \
exit 0
@@ -84,8 +85,6 @@ main()
fi
"${buildpath}/${mode}/${option}" $@ || err "lbmk error"
esac
./.gitcheck clean || err "/.gitcheck clean call from main, in /lbmk"
}
install_dependencies()