summaryrefslogtreecommitdiffstats
path: root/unix/installManPage
diff options
context:
space:
mode:
Diffstat (limited to 'unix/installManPage')
-rwxr-xr-xunix/installManPage9
1 files changed, 5 insertions, 4 deletions
diff --git a/unix/installManPage b/unix/installManPage
index 86f9860..3d5fa7b 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
@@ -132,7 +133,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