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: In Progress
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 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-30 21:50 UTC by ganael.laplanche
Modified: 2014-06-18 07:05 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: