mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-28 23:19:03 +02:00
lib.sh: move mksha512sum() to vendor.sh
this is unused in cbmk. it's only used from vendor.sh. therefore, lbmk shall have it in vendor.sh. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -29,14 +29,6 @@ mktarball()
|
||||
x_ tar -c "$1" | xz -T$XBMK_THREADS -9e > "$2" || err "mktarball2, $1"
|
||||
}
|
||||
|
||||
mksha512sum()
|
||||
{
|
||||
(
|
||||
[ "${1%/*}" != "$1" ] && x_ cd "${1%/*}"
|
||||
sha512sum ./"${1##*/}" >> "$2" || err "!sha512sum \"$1\" > \"$2\""
|
||||
) || err "failed to create tarball checksum"
|
||||
}
|
||||
|
||||
rmgit()
|
||||
{
|
||||
fx_ "x_ rm -Rf" x_ find "$1" -name ".git"
|
||||
|
||||
@@ -277,6 +277,14 @@ prep()
|
||||
x_ rm -f "$_xrom"
|
||||
}
|
||||
|
||||
mksha512sum()
|
||||
{
|
||||
(
|
||||
[ "${1%/*}" != "$1" ] && x_ cd "${1%/*}"
|
||||
sha512sum ./"${1##*/}" >> "$2" || err "!sha512sum \"$1\" > \"$2\""
|
||||
) || err "failed to create tarball checksum"
|
||||
}
|
||||
|
||||
add_vfiles()
|
||||
{
|
||||
rom="$1"
|
||||
|
||||
Reference in New Issue
Block a user