X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=install-sh;h=58e7b586e41c6520c331703f42f3f16f41749e83;hp=7071e5bd20121e8eb2da4bee85b3391495057b63;hb=9cd152cafd7736ab2c4485f0f471b7b191943e11;hpb=d259454b195c43497bcdaac6bb83a0f2e81afc36 diff --git a/install-sh b/install-sh index 7071e5bd..58e7b586 100755 --- a/install-sh +++ b/install-sh @@ -1,7 +1,21 @@ -#! /bin/sh +#! /bin/bash # # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. # +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# # This script emulates bsd install and also recognises # two environment variables, with the following semantics :- # @@ -83,6 +97,8 @@ REAL_UID=$OWNER INSTALL=true MANIFEST=: +: ${DIST_ROOT:=${DESTDIR}} + [ -n "$DIST_MANIFEST" -a -z "$DIST_ROOT" ] && INSTALL=false [ -n "$DIST_MANIFEST" ] && MANIFEST="_manifest"