summaryrefslogtreecommitdiff
path: root/checkgit
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-04 08:06:10 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-04 08:06:10 +0100
commitfbd464b4f795b82990edad4901f6812b10ca3260 (patch)
tree6c39e3222dbdd67875720d84900cbc1348c2e42b /checkgit
parente638c3e41135292a7398e4c85a2dfd037be70ce3 (diff)
include/err.sh: checkgit,checkversion
call these as functions, instead of executing scripts Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'checkgit')
-rwxr-xr-xcheckgit27
1 files changed, 0 insertions, 27 deletions
diff --git a/checkgit b/checkgit
deleted file mode 100755
index a1f900c3..00000000
--- a/checkgit
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/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 $@