]> Git Repo - binutils.git/blobdiff - install.sh
* configure.in: Recognize h8300h-*-*.
[binutils.git] / install.sh
index 53f7450dfad4696f9434cac2593bef23feece521..6c51cad46943dba5a07eaeb005c0693d01e8a057 100755 (executable)
@@ -78,6 +78,8 @@ while [ x"$1" != x ]; do
            then
                src=$1
            else
+               # this colon is to work around a 386BSD /bin/sh bug
+               :
                dst=$1
            fi
            shift
@@ -114,7 +116,8 @@ fi
 
 # Make a temp file name in the proper directory.
 
-dstdir=`dirname $dst`
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
 dsttmp=$dstdir/#inst.$$#
 
 # Make sure that the destination directory exists.
@@ -152,7 +155,7 @@ if [ x"$transformarg" = x ]
 then
        dstfile=`basename $dst`
 else
-       dstfile=`basename $dst $transformbasename | sed -e $transformarg`
+       dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename
 fi
 
 # don't allow the sed command to completely eliminate the filename
This page took 0.025032 seconds and 4 git commands to generate.