diff options
author | das <das@noemail.net> | 2008-03-11 22:28:31 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2008-03-11 22:28:31 (GMT) |
commit | 6e1cc6984814a00b90b2525fe658eab7e1067be6 (patch) | |
tree | f4895e075ce09959507acb217a059f3110c87de1 /unix/install-sh | |
parent | 7404f2af70da36909eb875c3458a852ce415aa64 (diff) | |
download | tcl-6e1cc6984814a00b90b2525fe658eab7e1067be6.zip tcl-6e1cc6984814a00b90b2525fe658eab7e1067be6.tar.gz tcl-6e1cc6984814a00b90b2525fe658eab7e1067be6.tar.bz2 |
* macosx/GNUmakefile: fix quoting to allow paths to
* macosx/Tcl-Common.xcconfig: ${builddir} and ${INSTALL_ROOT}
* unix/Makefile.in: to contain spaces.
* unix/configure.in:
* unix/install-sh:
* unix/tcl.m4:
* tests/ioCmd.test:
* unix/Makefile.in (install-strip): strip non-global symbols from
dynamic library.
FossilOrigin-Name: 82d286110d8aba7cc7ffb0cfd1ce0d2315a733c3
Diffstat (limited to 'unix/install-sh')
-rwxr-xr-x | unix/install-sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/unix/install-sh b/unix/install-sh index a9a1f27..8cff938 100755 --- a/unix/install-sh +++ b/unix/install-sh @@ -94,31 +94,31 @@ fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic -if [ -d $dst ] +if [ -d "$dst" ] then - dst="$dst"/`basename $src` + dst="$dst/`basename "$src"`" fi # Make a temp file name in the proper directory. -dstdir=`dirname $dst` -dsttmp=$dstdir/#inst.$$# +dstdir="`dirname "$dst"`" +dsttmp="$dstdir"/#inst.$$# # Move or copy the file name to the temp name -$doit $instcmd $src $dsttmp +$doit $instcmd "$src" "$dsttmp" # and set any options; do chmod last to preserve setuid bits -if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi -if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi -if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi -if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi +if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; fi +if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; fi +if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; fi +if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; fi # Now rename the file to the real destination. -$doit $rmcmd $dst -$doit $mvcmd $dsttmp $dst +$doit $rmcmd "$dst" +$doit $mvcmd "$dsttmp" "$dst" exit 0 |