summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-05-19 19:32:03 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-05-19 19:32:03 (EDT)
commitc8988cac96bec1e6ff86aed61344118a8036be74 (patch)
tree51d08a75ff846056937ca3f5d59770ab8429204e /build
parent76b1469b1636f47b01e35bb4674fec31470fac75 (diff)
build: Make sed RE less greedy in inst
Also make mkdir/rm/mv verbose.
Diffstat (limited to 'build')
-rwxr-xr-xbuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/build b/build
index 5b66800..0cff1b3 100755
--- a/build
+++ b/build
@@ -149,10 +149,10 @@ build-cross: build-gcc-config
inst = set -e; \
inst() { \
i=0; for d in "$${@}"; do : $$((i += 1)); done; \
- mkdir -p "$(destdir)$$(printf '%s\n' $${d} | sed 's|/.*$$||')";\
+ mkdir -pv "$(destdir)$$(printf '%s\n' $${d} | sed 's|/[^/]*$$||')";\
for s in "$${@}"; do [ $$((i -= 1)) -eq 0 ] && break; \
- rm -Rf "$(destdir)$${d}"; \
- mv "$(destdir)$${s}" "$(destdir)$${d}"; \
+ rm -Rfv "$(destdir)$${d}"; \
+ mv -v $(destdir)$${s} "$(destdir)$${d}"; \
done; \
}; inst