mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-26 22:09:03 +02:00
This results in much cleaner copyright and license declarations. SPDX headers are legally recognised and make auditing easier. Also, remove descriptions of each script, from each script. Libreboot documentation at docs/maintain/ describes them. Signed-off-by: Leah Rowe <leah@libreboot.org>
28 lines
694 B
Bash
Executable File
28 lines
694 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# SPDX-License-Identifier: MIT
|
|
# SPDX-FileCopyrightText: 2023 Leah Rowe <leah@libreboot.org>
|
|
|
|
. "include/err.sh"
|
|
|
|
read projectname < projectname
|
|
|
|
main()
|
|
{
|
|
which git 1>/dev/null 2>/dev/null || \
|
|
fail "git not installed. please install git-scm."
|
|
git config --global user.name 1>/dev/null 2>/dev/null || \
|
|
fail "git config --global user.name \"John Doe\""
|
|
git config --global user.email 1>/dev/null 2>/dev/null || \
|
|
fail "git config --global user.email \"john.doe@example.com\""
|
|
}
|
|
|
|
fail()
|
|
{
|
|
printf "You must configure Git, before using %s's build system. Do:\n" \
|
|
"${projectname}" 1>&2
|
|
printf "%s\n\n" "${1}" 1>&2
|
|
err "Misconfigured git-scm"
|
|
}
|
|
|
|
main $@
|