This patch enhances install by bringing support for automatically creating
target directory's hierarchy before installing files (-D option).
install -D foo bar/
Will create directory bar/ and install foo inside.
install -D foo bar
Same behaviour as before : file foo is installed as bar
install -D foo bar baz/abc/
install -D foo bar baz/abc
Will create target directory baz/abc and install foo and bar inside.
install -d -D foo bar
Same behaviour as before : directories foo and bar are created
This options is inspired from gnu's install and may simplify porter's work.
I have updated documentation (install.1) to make the new option appear.
Fix: Patch attached with submission follows:
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017
- Set Status to "Open"