From: Mike Frysinger Date: Mon, 24 Sep 2012 23:39:37 +0000 (-0400) Subject: xfsprogs: respect DESTDIR when installing X-Git-Tag: v3.1.9-rc1~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e6aa9c29b7fd39bd2a154ad12012d271b0f056b;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: 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 Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- diff --git a/include/install-sh b/include/install-sh index 18c051fb8..c952a7151 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"