diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-10-27 02:24:39 -0400 |
---|---|---|
committer | Brandon Philips <brandon@ifup.co> | 2013-05-18 22:10:48 -0700 |
commit | e88b8e55f62fc12180490fa213a5d0343920174f (patch) | |
tree | 9500db9305cc7cf9141ce7beb8774ecc3dd31ca7 | |
parent | 0feef87dd3a7522d67aba598de86aaf8e889edfc (diff) | |
download | attr-e88b8e55f62fc12180490fa213a5d0343920174f.tar.gz |
attr: respect DESTDIR when installing
This makes the `make install DESTDIR=...` form work. It keeps support
for all previous forms too (like DIST_ROOT).
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | include/install-sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/install-sh b/include/install-sh index 709e59d..fb4997a 100755 --- a/include/install-sh +++ b/include/install-sh @@ -99,6 +99,8 @@ REAL_UID=$OWNER INSTALL=true MANIFEST=: +: ${DIST_ROOT:=${DESTDIR}} + [ -n "$DIST_MANIFEST" -a -z "$DIST_ROOT" ] && INSTALL=false [ -n "$DIST_MANIFEST" ] && MANIFEST="_manifest" |