summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 14:37:44 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 14:37:44 (EDT)
commit5d77a25b7b46f2f60f2152699e2ce75183f121b9 (patch)
treecd8b5e20bf5380dce91bad31f6696c09491bf00c
parentf9b73d63d1fddde7e2e685b2e36ac9690c6b25cf (diff)
src/2/build.mk: Make directory patterns explicit
-rw-r--r--src/2/build.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/2/build.mk b/src/2/build.mk
index a20d704..dfa6292 100644
--- a/src/2/build.mk
+++ b/src/2/build.mk
@@ -8,10 +8,12 @@ nop build:
install:
set -e; \
[ -d src/build/ ] || exit 0; \
- for pkg in src/build/*; do \
+ for pkg in src/build/*/; do \
pkg="$${pkg#src/build/}"; \
- for ver in "src/build/$${pkg}/"*; do \
+ pkg="$${pkg%/}"; \
+ for ver in "src/build/$${pkg}/"*/; do \
ver="$${ver#src/build/$${pkg}/}"; \
+ ver="$${ver%/}"; \
mkdir -p "$(ppt_platconf_dir)"; \
cp -p "src/build/$${pkg}/$${ver}/"* \
"$(ppt_platconf_dir)"; \
@@ -19,8 +21,9 @@ install:
done
set -e; \
[ -d src/run/ ] || exit 0; \
- for pkg in src/run/*; do \
+ for pkg in src/run/*/; do \
pkg="$${pkg#src/run/}"; \
+ pkg="$${pkg%/}"; \
mkdir "config-$${pkg}.data"; \
find "src/run/$${pkg}" -type f | while read -r file; do \
file="$${file#src/run/$${pkg}}"; \