diff options
author | Patrick 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) |
commit | c8988cac96bec1e6ff86aed61344118a8036be74 (patch) | |
tree | 51d08a75ff846056937ca3f5d59770ab8429204e /build | |
parent | 76b1469b1636f47b01e35bb4674fec31470fac75 (diff) |
build: Make sed RE less greedy in inst
Also make mkdir/rm/mv verbose.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |