Bug 122271 - [patch] xinstall(8) - Add support for -D option (create parent directories before installing file(s))
Summary: [patch] xinstall(8) - Add support for -D option (create parent directories be...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 7.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2008-03-30 21:50 UTC by Ganael LAPLANCHE
Modified: 2022-10-17 12:40 UTC (History)
2 users (show)

See Also:


Attachments
file.diff (3.56 KB, patch)
2008-03-30 21:50 UTC, Ganael LAPLANCHE
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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/
or
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

Do
- Set Status to "Open"
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:40:00 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>