xfs
[Top] [All Lists]

[PATCH 2/3] respect DESTDIR when installing

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/3] respect DESTDIR when installing
From: Mike Frysinger <vapier@xxxxxxxxxx>
Date: Mon, 24 Sep 2012 19:39:37 -0400
In-reply-to: <1348529978-30048-1-git-send-email-vapier@xxxxxxxxxx>
References: <1348529978-30048-1-git-send-email-vapier@xxxxxxxxxx>
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@xxxxxxxxxx>
---
 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

<Prev in Thread] Current Thread [Next in Thread>