diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-24 16:15:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-24 16:15:42 (GMT) |
commit | 34b0c66b2df6dd3465e359dd2b6d0d7c121f30de (patch) | |
tree | f0fb50f2fcfc892d1d6fafcec4bd1ab7b2d90c2f | |
parent | aa74f8e4da395de0ffc09489cc0e8945d54a6534 (diff) | |
download | tk-34b0c66b2df6dd3465e359dd2b6d0d7c121f30de.zip tk-34b0c66b2df6dd3465e359dd2b6d0d7c121f30de.tar.gz tk-34b0c66b2df6dd3465e359dd2b6d0d7c121f30de.tar.bz2 |
Sync unix/installManPage with Tcl
-rwxr-xr-x | unix/installManPage | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unix/installManPage b/unix/installManPage index 2293a20..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="FindPhoto FontId MeasureChar" +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 |