diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-24 16:06:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-24 16:06:24 (GMT) |
commit | 24c0f5047225da348a27676cdfcc4f96ec98ea4b (patch) | |
tree | 19e3104c2925d5694f604ead8e9798c77c577539 /unix/installManPage | |
parent | 2b54268bb778bdb9fc04f710ecf0794d8a9ea255 (diff) | |
download | tcl-24c0f5047225da348a27676cdfcc4f96ec98ea4b.zip tcl-24c0f5047225da348a27676cdfcc4f96ec98ea4b.tar.gz tcl-24c0f5047225da348a27676cdfcc4f96ec98ea4b.tar.bz2 |
correct quoting in unix/installManPage, so $Dir can contain spaces
Diffstat (limited to 'unix/installManPage')
-rwxr-xr-x | unix/installManPage | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unix/installManPage b/unix/installManPage index 82d34e6..c00c855 100755 --- a/unix/installManPage +++ b/unix/installManPage @@ -43,7 +43,7 @@ if test -f $ManPage ; then : ; else echo "source manual page file must exist" exit 1 fi -if test -d $Dir ; then : ; else +if test -d "$Dir" ; then : ; else echo "target directory must exist" exit 1 fi @@ -98,7 +98,7 @@ SrcDir=`dirname $ManPage` ### Process Page to Create Target Pages ### -Specials="DString Thread Notifier RegExp library packagens pkgMkIndex safesock" +Specials="DString Thread Notifier RegExp library packagens pkgMkIndex safesock FindPhoto FontId MeasureChar" for n in $Specials; do if [ "$Name" = "$n" ] ; then Names="$n $Names" @@ -108,15 +108,15 @@ done First="" for Target in $Names; do Target=$Target.$Section$Suffix - rm -f $Dir/$Target $Dir/$Target.* + rm -f "$Dir/$Target" "$Dir/$Target.*" if test -z "$First" ; then First=$Target sed -e "/man\.macros/r $SrcDir/man.macros" -e "/man\.macros/d" \ - $ManPage > $Dir/$First - chmod 644 $Dir/$First - $Gzip $Dir/$First + $ManPage > "$Dir/$First" + chmod 644 "$Dir/$First" + $Gzip "$Dir/$First" else - ln $SymOrLoc$First$Gz $Dir/$Target$Gz + ln $SymOrLoc"$First$Gz" "$Dir/$Target$Gz" fi done |