From c8988cac96bec1e6ff86aed61344118a8036be74 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 19 May 2019 19:32:03 -0400 Subject: build: Make sed RE less greedy in inst Also make mkdir/rm/mv verbose. --- (limited to 'build') 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 -- cgit v0.9.1