meson: fix dirname/basename confusion in meson-and-wants.sh install helper (#10126)

We would create a useless empty directory under build/.
It seems we were lucky and all symlinks were installed into directories
which were alredy created because we installed something into the same
location earlier.

While at it, also add '-v' to 'mkdir -p'. This will print the names of
directories as they are created (just once), making it easier to see all of
what the install script is doing.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-09-20 09:01:58 +02:00 committed by Yu Watanabe
parent 214bd9f310
commit 3f491cccef
1 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ unitpath="${DESTDIR:-}${unitdir}/${unit}"
case "$target" in
*/)
mkdir -p -m 0755 "$dir"
mkdir -vp -m 0755 "$dir"
;;
*)
mkdir -p -m 0755 "$(basename "$dir")"
mkdir -vp -m 0755 "$(dirname "$dir")"
;;
esac