diff options
author | Leah Rowe <leah@libreboot.org> | 2024-05-15 00:45:01 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-05-15 00:45:01 +0100 |
commit | f0b604fc9591c1679c9470f747abcf471fddb162 (patch) | |
tree | ad725c34e61e56a28bfec21be3cd9c5342360522 /include/option.sh | |
parent | 267c13cca73f23edb32a1fa7bff153d39aed9f45 (diff) |
option.sh: remove insert_version_files()
it's only called once, from this file, within a small
function, and the function itself is very small.
remove, and put the contents of the function in the
calling function.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/option.sh')
-rwxr-xr-x | include/option.sh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/option.sh b/include/option.sh index c42327d4..eea50101 100755 --- a/include/option.sh +++ b/include/option.sh @@ -174,7 +174,10 @@ check_project() mktar_release() { - x_ insert_version_files "$1" + printf "%s\n" "${version}" > "${1}/version" || return 1 + printf "%s\n" "${versiondate}" > "${1}/versiondate" || return 1 + printf "%s\n" "${projectname}" > "${1}/projectname" || return 1 + mktarball "$1" "${1}.tar.xz" x_ rm -Rf "$1" } @@ -207,10 +210,3 @@ mksha512sum() $err "!sha512sum \"${1}\" > \"${2}\"" ) || $err "failed to create tarball checksum" } - -insert_version_files() -{ - printf "%s\n" "${version}" > "${1}/version" || return 1 - printf "%s\n" "${versiondate}" > "${1}/versiondate" || return 1 - printf "%s\n" "${projectname}" > "${1}/projectname" || return 1 -} |