summaryrefslogtreecommitdiffstats
path: root/unix/installManPage
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-10 12:21:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-10 12:21:56 (GMT)
commit2d1dce6328cf2fdc16da8deab4610bfa6ea22fd5 (patch)
tree2196c80e139b2ee0ba98fe1c8cdb61b9fe135b44 /unix/installManPage
parentb3e2e15abbb587934622dc562ca7d0e4b7c0a64e (diff)
downloadtcl-2d1dce6328cf2fdc16da8deab4610bfa6ea22fd5.zip
tcl-2d1dce6328cf2fdc16da8deab4610bfa6ea22fd5.tar.gz
tcl-2d1dce6328cf2fdc16da8deab4610bfa6ea22fd5.tar.bz2
Introduce MODULE_INSTALL_DIR in make/nmake files, for compiling Tcl. Less use of ".." in the makefiles.
Adapt all makefiles (unix/win) such that they can handle spaces in LIB_INSTALL_DIR/SCRIPT_INSTALL_DIR/MODULE_INSTALL_DIR, just by adding double-quotes in appropriate places.
Diffstat (limited to 'unix/installManPage')
-rwxr-xr-xunix/installManPage12
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/installManPage b/unix/installManPage
index 2814259..1af3f6d 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
@@ -109,15 +109,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