mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 03:25:25 +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"
|
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()
|
rmgit()
|
||||||
{
|
{
|
||||||
fx_ "x_ rm -Rf" x_ find "$1" -name ".git"
|
fx_ "x_ rm -Rf" x_ find "$1" -name ".git"
|
||||||
|
|||||||
@@ -277,6 +277,14 @@ prep()
|
|||||||
x_ rm -f "$_xrom"
|
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()
|
add_vfiles()
|
||||||
{
|
{
|
||||||
rom="$1"
|
rom="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user