diff options
author | das <das> | 2008-03-11 22:33:21 (GMT) |
---|---|---|
committer | das <das> | 2008-03-11 22:33:21 (GMT) |
commit | 1e1e566f937cdb6742040e51aa3a1f1f07518d86 (patch) | |
tree | af4a8a514a1fc2b14f82b0edd272568f0bbe444d /unix/install-sh | |
parent | de5c5f505cb34caac65e24f2f9b9f62e8982f440 (diff) | |
download | tk-1e1e566f937cdb6742040e51aa3a1f1f07518d86.zip tk-1e1e566f937cdb6742040e51aa3a1f1f07518d86.tar.gz tk-1e1e566f937cdb6742040e51aa3a1f1f07518d86.tar.bz2 |
* macosx/GNUmakefile: fix quoting to allow paths to
* macosx/Wish-Common.xcconfig: ${builddir}, ${INSTALL_ROOT}
* unix/Makefile.in: and ${TCL_BIN_DIR} to contain
* unix/configure.in: spaces.
* unix/install-sh:
* unix/tcl.m4:
* unix/Makefile.in (install-strip): strip non-global symbols from
dynamic library.
Diffstat (limited to 'unix/install-sh')
-rw-r--r-- | unix/install-sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/unix/install-sh b/unix/install-sh index a9a1f27..8cff938 100644 --- 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 |