summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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