Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use -D flag for install #58

Merged
merged 1 commit into from
Mar 31, 2022
Merged

Do not use -D flag for install #58

merged 1 commit into from
Mar 31, 2022

Conversation

ryandesign
Copy link
Contributor

The -D flag is a GNU extension not available on BSD install (e.g. on macOS).

See #56

Fixes:

install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
The -D flag is a GNU extension not available on BSD install (e.g. on macOS).

See #56
@SuperSandro2000
Copy link

What is the equivalent on bsd install to

-D create all leading components of DEST except the last, or all components of --target-directory, then copy SOURCE to DEST

?

@ryandesign
Copy link
Contributor Author

Looks like it's -d:

     -d      Create directories.  Missing parent directories are created as required.

However -d means something else in GNU install. So there isn't a portable way to do this.

@rwos
Copy link
Owner

rwos commented Mar 31, 2022

https://xkcd.com/927/

thanks, will merge! Still have that on my to do list, to steal a portable Makefile from some other project.

@rwos rwos merged commit bc52542 into rwos:master Mar 31, 2022
@ryandesign ryandesign deleted the patch-1 branch March 31, 2022 09:27
@ryandesign
Copy link
Contributor Author

Er, I misread those manpages somewhat.

-d means the same thing in both BSD and GNU install: it means "create the named directory".

In GNU install, -D means "create any needed parent directories, then install the named file". BSD install doesn't have an equivalent of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants