pthbs

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

commit e9e0aa04b65eea4b9d770f5fbb6237ceccd47092
parent a77efd2097d5dce7af7970d04b20a031f4213b87
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Thu,  8 May 2025 10:22:24 +0000

Delimit env creation commands properly

Diffstat:
Mcommand/pthbs-makegen | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/command/pthbs-makegen b/command/pthbs-makegen @@ -115,13 +115,13 @@ function make_envfile( n, envfile, envhash) { } printf "\n\t%s", "@if test -f "q("$@")"; then touch "q("$@")"; else" printf " \\\n\t%s", "printf "q("Creating environment for %s => %s\\n")" "q(FILENAME)" "q("$(versions)/env."envhash) - printf " \\\n\t%s", "if test -e "q("$(versions)/env."envhash)"; then rm -r "q("$(versions)/env."envhash)"; fi" - printf " \\\n\t%s", "mkdir -p "q("$(versions)/env."envhash"/env") + printf " && \\\n\t%s", "if test -e "q("$(versions)/env."envhash)"; then rm -r "q("$(versions)/env."envhash)"; fi" + printf " && \\\n\t%s", "mkdir -p "q("$(versions)/env."envhash"/env") for(n=1; n<=env_count; n++) { - printf " \\\n\t%s", "pthbs-link "q("$(versions)/"env[n])" "q("$(versions)/env."envhash) + printf " && \\\n\t%s", "pthbs-link "q("$(versions)/"env[n])" "q("$(versions)/env."envhash) } - printf " \\\n\t%s", "pthbs-enter-gen "q("$(versions)/env."envhash) - printf " \\\n\t%s\n\n", "sort -u <"q(envfile)" >"q("$@")"; fi" + printf " && \\\n\t%s", "pthbs-enter-gen "q("$(versions)/env."envhash) + printf " && \\\n\t%s\n\n", "sort -u <"q(envfile)" >"q("$@")"; fi" printf "%s\n", "env_"envhash"_defined="ENVIRON["scriptname"] printf "%s\n", "endif" return envhash