diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-09-24 19:39:37 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-10-24 16:39:09 -0500 |
commit | 1d5a48cc3379b5a1f4a9f2dc5873de6b9c4a81af (patch) | |
tree | 412ef196ff445fa3d24721838852c346ce14860a | |
parent | 87834dea012ec009b4239daa3c13d65623038c8f (diff) | |
download | xfsdump-dev-1d5a48cc3379b5a1f4a9f2dc5873de6b9c4a81af.tar.gz |
xfsdump: 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>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
-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 18c051fb..c952a715 100755 --- a/include/install-sh +++ b/include/install-sh @@ -85,6 +85,8 @@ REAL_UID=$OWNER INSTALL=true MANIFEST=: +: ${DIST_ROOT:=${DESTDIR}} + [ -n "$DIST_MANIFEST" -a -z "$DIST_ROOT" ] && INSTALL=false [ -n "$DIST_MANIFEST" ] && MANIFEST="_manifest" |