install-sh revision 5c526acb82c882e41b655c31f5fa4425c87b671c
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# install - install a program, script, or datafile
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# This comes from X11R5 (mit/util/scripts/install.sh).
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# Copyright 1991 by the Massachusetts Institute of Technology
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# Permission to use, copy, modify, distribute, and sell this software and its
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# documentation for any purpose is hereby granted without fee, provided that
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# the above copyright notice appear in all copies and that both that
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# copyright notice and this permission notice appear in supporting
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# documentation, and that the name of M.I.T. not be used in advertising or
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# publicity pertaining to distribution of the software without specific,
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# written prior permission. M.I.T. makes no representations about the
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# suitability of this software for any purpose. It is provided "as is"
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# without express or implied warranty.
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# Calling this script install-sh is preferred over install.sh, to prevent
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# `make' implicit rules from creating a file called install from it
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# when there is no Makefile.
-d) dir_arg=true
*) if [ x"$src" = x ]
if [ x"$src" = x ]
if [ x"$dir_arg" != x ]; then
if [ -d $dst ]; then
instcmd=:
echo "install: $src does not exist"
if [ x"$dst" = x ]
if [ -d $dst ]
if [ ! -d "$dstdir" ]; then
if [ x"$dir_arg" != x ]
if [ x"$transformarg" = x ]
if [ x"$dstfile" = x ]