aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-04-27 19:19:56 +0000
committerDavid MacKenzie <djm@cygnus>1994-04-27 19:19:56 +0000
commit835578f34d7ea43a36cb3c32afa8203dd335bd17 (patch)
tree262369f5cfa61b8f08f9a0219adc77db69407a9c
parent2578b9a32393705e9e35a7bc0205c7dabb8c45cd (diff)
downloadgdb-835578f34d7ea43a36cb3c32afa8203dd335bd17.zip
gdb-835578f34d7ea43a36cb3c32afa8203dd335bd17.tar.gz
gdb-835578f34d7ea43a36cb3c32afa8203dd335bd17.tar.bz2
* install.sh: If $dstdir exists, don't check whether each component does.
-rw-r--r--ChangeLog5
-rwxr-xr-xinstall.sh5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 89e417e..1870353 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr 27 12:14:30 1994 David J. Mackenzie (djm@rtl.cygnus.com)
+
+ * install.sh: If $dstdir exists, don't check whether each
+ component does.
+
Tue Apr 26 18:11:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* test-build.mk (HOLES): Add sleep; used by rcs/src/conf.sh.
diff --git a/install.sh b/install.sh
index 6627fd1..31420ab 100755
--- a/install.sh
+++ b/install.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#
# install - install a program, script, or datafile
-# This comes from X11R5; it is not part of GNU.
+# This comes from X11R5.
#
# $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
#
@@ -146,6 +146,8 @@ dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
+# Skip lots of stat calls in the usual case.
+if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
@@ -171,6 +173,7 @@ while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}/"
done
+fi
if [ x"$dir_arg" != x ]
then