From 5d77a25b7b46f2f60f2152699e2ce75183f121b9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 15 Jul 2019 14:37:44 -0400 Subject: src/2/build.mk: Make directory patterns explicit --- (limited to 'src/2') 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}}"; \ -- cgit v0.9.1