pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

commit fffa42c74d99d94c5e226acd492cbfca57a4b9ad
parent c4c034364c3f17dfe6412d56f4d22c5f8c838f6d
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Thu, 22 Feb 2024 07:21:28 +0100

Pass in correct environment name

Diffstat:
Mcommand/pthbs-build | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/command/pthbs-build b/command/pthbs-build @@ -55,6 +55,11 @@ function dirname(s) { # strip the last path component return s } +function basename(s) { # strip the last path component + sub("^.*/$", "", s) + return s +} + function fatal(msg) { printf "FATAL: pthbs-build: %s %s:%d: \"%s\"\n", msg, FILENAME, FNR, $0 >"/dev/stderr" exit 1 @@ -144,7 +149,7 @@ function at_filehash(hash_type, file_hash, dst, dstdir){ sandbox_cmd=sandbox_cmd" --extra-mount=tmpfs:"q(ENVIRON["basedir"]"/work") sandbox_cmd=sandbox_cmd" --extra-mount=rw_bind:"q(ENVIRON["workdir"])":"q(ENVIRON["workdir"]) sandbox_cmd=sandbox_cmd" -- "q(ENVIRON["basedir"]"/work/root") - sandbox_cmd=sandbox_cmd" ." + sandbox_cmd=sandbox_cmd" "q(basename(ENVIRON["envdir"])) } } else { sandbox_cmd=""