* srconv.c (wr_hd): Space size within segment was being
[deliverable/binutils-gdb.git] / install.sh
index 2576817e3991f1d23d6931b713bcac5368f521f5..31420abacc51da67aa7c800985151f1c87546e5c 100755 (executable)
@@ -1,9 +1,7 @@
 #!/bin/sh
-set -e
-
 #
 # 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 $
 #
@@ -32,7 +30,7 @@ mkdirprog="${MKDIRPROG-mkdir}"
 tranformbasename=""
 transform_arg=""
 instcmd="$mvprog"
-chmodcmd=""
+chmodcmd="$chmodprog 0755"
 chowncmd=""
 chgrpcmd=""
 stripcmd=""
@@ -148,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}}"
@@ -173,6 +173,7 @@ while [ $# -ne 0 ] ; do
 
        pathcomp="${pathcomp}/"
 done
+fi
 
 if [ x"$dir_arg" != x ]
 then
This page took 0.030127 seconds and 4 git commands to generate.