diff options
author | Leah Rowe <leah@libreboot.org> | 2025-04-26 22:29:17 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-04-26 22:35:45 +0100 |
commit | f6c5c8d396d3e5b317f19e66ca23049a06949969 (patch) | |
tree | 9d9f586561b6ba636ed9681113c691ffa57e4832 /mk | |
parent | ec1c92238ccaceab59102dbf0ede8f63bc0ef433 (diff) |
mk: move git_init to init.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'mk')
-rwxr-xr-x | mk | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -24,7 +24,7 @@ main() cmd="" && [ $# -gt 0 ] && cmd="$1" && shift 1 for g in "command -v git" "git config --global user.name" \ - "git config --global user.email" "git_init"; do + "git config --global user.email"; do eval "$g 1>/dev/null 2>/dev/null || $err \"Unconfigured: $g\"" done @@ -37,19 +37,6 @@ main() set -u -e # some commands disable them. turn them on! } -git_init() -{ - [ -L ".git" ] && return 1 - [ -e ".git" ] && return 0 - eval "`setvars "$(date -Rud @$versiondate)" cdate _nogit`" - - git init || return 1 - git add -A . || return 1 - git commit -m "$projectname $version" --date "$cdate" \ - --author="xbmk <xbmk@example.com>" || return 1 - git tag -a "$version" -m "$projectname $version" || return 1 -} - release() { export XBMK_RELEASE="y" |