Changeset 3681 for branches/2.2/install-sh
- Timestamp:
- 04/10/05 20:41:52 (4 years ago)
- Files:
-
- branches/2.2/install-sh (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.2/install-sh
r99 r3681 116 116 dst=$src 117 117 src="" 118 118 119 119 if [ -d $dst ]; then 120 120 instcmd=: … … 125 125 126 126 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command 127 # might cause directories to be created, which would be especially bad 127 # might cause directories to be created, which would be especially bad 128 128 # if $src (and thus $dsttmp) contains '*'. 129 129 … … 135 135 exit 1 136 136 fi 137 137 138 138 if [ x"$dst" = x ] 139 139 then … … 163 163 # Skip lots of stat calls in the usual case. 164 164 if [ ! -d "$dstdir" ]; then 165 defaultIFS=' 165 defaultIFS=' 166 166 ' 167 167 IFS="${IFS-${defaultIFS}}" … … 202 202 # If we're going to rename the final executable, determine the name now. 203 203 204 if [ x"$transformarg" = x ] 204 if [ x"$transformarg" = x ] 205 205 then 206 206 dstfile=`basename $dst` 207 207 else 208 dstfile=`basename $dst $transformbasename | 208 dstfile=`basename $dst $transformbasename | 209 209 sed $transformarg`$transformbasename 210 210 fi … … 212 212 # don't allow the sed command to completely eliminate the filename 213 213 214 if [ x"$dstfile" = x ] 214 if [ x"$dstfile" = x ] 215 215 then 216 216 dstfile=`basename $dst` … … 243 243 244 244 $doit $rmcmd -f $dstdir/$dstfile && 245 $doit $mvcmd $dsttmp $dstdir/$dstfile 245 $doit $mvcmd $dsttmp $dstdir/$dstfile 246 246 247 247 fi &&
