mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lbmk: use mkhtemp in libreboot's build system
i added a fake -t option, which doesn't actually read optarg, so that -t usage can just override the normal template. mkhtemp isn't ready for distros yet, but it's ready for lbmk. i hacked the makefile to also copy the binary to mktemp, and i set PATH in lbmk so that this binary is used insttead of the one on your system. that way, upstream projects use it. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -35,7 +35,7 @@ prep_mr_import()
|
||||
err "Project import disabled on releases" "prep_mr_import" "$@"
|
||||
fi
|
||||
|
||||
mr_tmpdir="`mktemp -d || err "can't make mrtmpdir"`" || \
|
||||
mr_tmpdir="`"$mkhtemp" -d || err "can't make mrtmpdir"`" || \
|
||||
err "can't make mrtmpdir" "prep_mr_coreboot" "$@"
|
||||
x_ remkdir "$mr_tmpdir"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user