Skip to content

Commit

Permalink
* install-sh: Replace with current version from automake.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlancetaylor committed Feb 8, 2002
1 parent b833e26 commit 2335085
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2002-02-08 Ian Lance Taylor <ian@airs.com>

* install-sh: Replace with current version from automake.

* configure.in: Don't put AC_MSG_WARN for ftime on the same line
as AC_MSG_RESULT.
* configure: Rebuild.
Expand Down
23 changes: 18 additions & 5 deletions install-sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
#! /bin/sh
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5.
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
#
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.


# set DOITPROG to echo to test this script
Expand All @@ -29,7 +41,7 @@ stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"

tranformbasename=""
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
Expand Down Expand Up @@ -106,6 +118,7 @@ if [ x"$dir_arg" != x ]; then

if [ -d $dst ]; then
instcmd=:
chmodcmd=""
else
instcmd=mkdir
fi
Expand Down

0 comments on commit 2335085

Please sign in to comment.