Bug 122271

Summary: [patch] xinstall(8) - Add support for -D option (create parent directories before installing file(s))
Product: Base System Reporter: Ganael LAPLANCHE <ganael.laplanche>
Component: binAssignee: freebsd-bugs mailing list <bugs>
Status: Open ---    
Severity: Affects Only Me CC: ganael.laplanche, martymac
Priority: Normal    
Version: 7.0-STABLE   
Hardware: Any   
OS: Any   
Description Flags
file.diff none

Description Ganael LAPLANCHE 2008-03-30 21:50:00 UTC
This patch enhances install by bringing support for automatically creating
target directory's hierarchy before installing files (-D option).

examples :

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:
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:50:59 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

- Set Status to "Open"