* srconv.c (wr_hd): Space size within segment was being
[deliverable/binutils-gdb.git] / install.sh
index 6627fd135d8cbf14760f65d5ce06239b4460c45b..31420abacc51da67aa7c800985151f1c87546e5c 100755 (executable)
@@ -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
This page took 0.022914 seconds and 4 git commands to generate.