summaryrefslogtreecommitdiffstats
path: root/unix/mkLinks.tcl
diff options
context:
space:
mode:
authorrmax <rmax>2002-06-25 16:34:33 (GMT)
committerrmax <rmax>2002-06-25 16:34:33 (GMT)
commitb0c724cbf01c05ec2eb28c003798336c38b7d1da (patch)
tree11a6570191d812b8a6ff045cd6d02561cc361dbc /unix/mkLinks.tcl
parent9d463d106e0773295dc5bd223472ee3d3e45b418 (diff)
downloadtcl-b0c724cbf01c05ec2eb28c003798336c38b7d1da.zip
tcl-b0c724cbf01c05ec2eb28c003798336c38b7d1da.tar.gz
tcl-b0c724cbf01c05ec2eb28c003798336c38b7d1da.tar.bz2
Some more fixes for the compress and symlink stuff to correct situations
where compressed manpages are being installed over uncompressed or vice versa.
Diffstat (limited to 'unix/mkLinks.tcl')
-rw-r--r--unix/mkLinks.tcl15
1 files changed, 7 insertions, 8 deletions
diff --git a/unix/mkLinks.tcl b/unix/mkLinks.tcl
index 166bc88..b0a4a6a 100644
--- a/unix/mkLinks.tcl
+++ b/unix/mkLinks.tcl
@@ -22,6 +22,7 @@ puts stdout \
# The script takes one argument, which is the name of the directory
# where the manual entries have been installed.
+ZIP=true
while true; do
case $1 in
-s | --symlinks )
@@ -42,7 +43,7 @@ if test $# != 1; then
exit 1
fi
-if test -n "$ZIP"; then
+if test "x$ZIP" != "xtrue"; then
touch TeST
$ZIP TeST
Z=`ls TeST* | sed 's/^[^.]*//'`
@@ -94,20 +95,18 @@ foreach file $argv {
set tstfi ""
}
lappend namelist $name$ext
- append rmOutput " $tst rm -f $name$ext $name$ext\$Z$tstfi\n"
- append lnOutput " $tst ln \$S $tail\$Z $name$ext\$Z$tstfi\n"
+ append rmOutput " $tst rm -f $name$ext $name$ext.* $tstfi\n"
+ append lnOutput " $tst ln \$S $tail\$Z $name$ext\$Z $tstfi\n"
}
}
- puts "if test -n \"\$ZIP\" -a -r $tail; then"
- puts " rm -f $tail\$Z"
+ puts "if test -r $tail; then"
+ puts " rm -f $tail.*"
puts " \$ZIP $tail"
- puts "fi"
if { [llength $namelist] } {
- puts "if test -r $tail\$Z; then"
puts -nonewline $rmOutput
puts -nonewline $lnOutput
- puts "fi"
}
+ puts "fi"
set state end
}
end {