diff options
author | Patrick 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) |
commit | 5d77a25b7b46f2f60f2152699e2ce75183f121b9 (patch) | |
tree | cd8b5e20bf5380dce91bad31f6696c09491bf00c /src | |
parent | f9b73d63d1fddde7e2e685b2e36ac9690c6b25cf (diff) |
src/2/build.mk: Make directory patterns explicit
Diffstat (limited to 'src')
-rw-r--r-- | src/2/build.mk | 9 |
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}}"; \ |