summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-08-02 14:49:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-08-02 14:49:59 (GMT)
commit3fda1b197a14f2ca225f10848b52cdcaafd69f3a (patch)
tree75202a0337f288e536df1fc3dd0f5b31f8e4f44c
parenta29f06d6863ce5485452e0cf0fdc799a0edc819b (diff)
downloadtk-3fda1b197a14f2ca225f10848b52cdcaafd69f3a.zip
tk-3fda1b197a14f2ca225f10848b52cdcaafd69f3a.tar.gz
tk-3fda1b197a14f2ca225f10848b52cdcaafd69f3a.tar.bz2
Fix 'instalManPage' regarding handling paths with spaces
-rwxr-xr-xunix/installManPage9
1 files changed, 5 insertions, 4 deletions
diff --git a/unix/installManPage b/unix/installManPage
index a442892..1e29bb0 100755
--- a/unix/installManPage
+++ b/unix/installManPage
@@ -5,13 +5,14 @@
###
Gzip=:
-SymOrLoc=""
+Sym=""
+Loc=""
Gz=""
Suffix=""
while true; do
case $1 in
- -s | --symlinks ) SymOrLoc="-s " ;;
+ -s | --symlinks ) Sym="-s " ;;
-z | --compress ) Gzip=$2; shift ;;
-e | --extension ) Gz=$2; shift ;;
-x | --suffix ) Suffix=$2; shift ;;
@@ -47,7 +48,7 @@ if test -d "$Dir" ; then : ; else
echo "target directory must exist"
exit 1
fi
-test -z "$SymOrLoc" && SymOrLoc="$Dir/"
+test -z "$Sym" && Loc="$Dir/"
########################################################################
### Extract Target Names from Manual Page
@@ -117,7 +118,7 @@ for Target in $Names; do
chmod 644 "$Dir/$First"
$Gzip "$Dir/$First"
else
- ln $SymOrLoc"$First$Gz" "$Dir/$Target$Gz"
+ ln $Sym"$Loc$First$Gz" "$Dir/$Target$Gz"
fi
done