[PATCH 2/3] respect DESTDIR when installing

Mike Frysinger vapier at gentoo.org
Mon Sep 24 18:39:37 CDT 2012


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 at gentoo.org>
---
 include/install-sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/install-sh b/include/install-sh
index 18c051f..c952a71 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"
 
-- 
1.7.12



More information about the xfs mailing list