commit 70d9a07196ee8d294426e5d371cdb6449d89e784
parent cb08d18284b5d538ef02b4e3bd74da45ccfab8ab
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Sat, 10 Jun 2023 12:13:17 +0200
Print build rule even if it has no dependencies.
Diffstat:
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,5 +1,6 @@
*.sw[op]
-sources/by-commit
-work
+.pycodestyle.*
downloads
files/by-sha256
+sources/by-commit
+work
diff --git a/command/pthbs-makegen b/command/pthbs-makegen
@@ -1,5 +1,5 @@
#!/bin/sh
-set -x
+#set -x
bsh=$(sha256sum $1) || exit $?
bsh=${bsh%% *}
basedir=$(dirname "$(dirname "$(realpath "$0")")")
@@ -9,7 +9,6 @@ script=$(realpath "$1")
pthbs_package=${1##*/}
pthbs_package=${pthbs_package%%:*}.$bsh
-mkdir -p "$workdir"
exec env \
basedir="$basedir" \
workdir="$workdir" \
@@ -83,7 +82,7 @@ function have_envdep(package) {
next
}
/^$/ {
- if(sandbox && env_count) {
+ if(env_count) {
envfile = "make/package.sha256."ENVIRON["bsh"]".env"
for(n=1; n<=env_count; n++) {
print env[n] >envfile
@@ -107,13 +106,11 @@ function have_envdep(package) {
printf "\n\t%s\n\n", "sort -u <"q(envfile)" >"q("$@")
}
- if(dep_count) {
- printf "%s", "$(VERSIONS)/"ENVIRON["package"]"/.install-links:"
- for(n=1; n<=dep_count; n++) {
- printf " %s", dep[n]
- }
- printf "\n\t%s\n", "pthbs-build "q(ENVIRON["script"])
+ printf "%s", "$(VERSIONS)/"ENVIRON["package"]"/.install-links:"
+ for(n=1; n<=dep_count; n++) {
+ printf " %s", deps[n]
}
+ printf "\n\t%s\n", "pthbs-build "q(ENVIRON["script"])
exit 0
}
{