AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.22k stars 476 forks source link

Create leading directories when installing. #41

Closed WhyNotHugo closed 9 years ago

WhyNotHugo commented 9 years ago

When installing to a custom DESTDIR or PREFIX (rather common for downstream packaging), it's not ususual for the installation directory to be inexistant.

This PR creates it when copying over the binary. This is also rather common practice.

AGWA commented 9 years ago

Thanks - you're absolutely right about this.

However, install -D is non-standard (it means something different on FreeBSD, for example). So, I've fixed this in ede1461563709498d397d8230d233c3d9a25880e with a separate call to install -d.

WhyNotHugo commented 9 years ago

Thanks for pointing that out. It does not exist on OpenBSD either, looks like -D is non-POSIX.