summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-19 15:11:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-19 15:11:04 (GMT)
commit55edd4a4b0bcf08733ce42a47208eb6515b90238 (patch)
treebbdeb9381124f7f6138da32a26d2c8db37480399 /tools
parent1444151242921a30f32183e5c69ceafec98078cc (diff)
parentefb19e23ae166b86ea649149005ea31dc5d1a8eb (diff)
downloadtcl-55edd4a4b0bcf08733ce42a47208eb6515b90238.zip
tcl-55edd4a4b0bcf08733ce42a47208eb6515b90238.tar.gz
tcl-55edd4a4b0bcf08733ce42a47208eb6515b90238.tar.bz2
Allow tools/tcltk-man2html.tcl to work with both configure.in and configure.ac: It could be used in extensions which still use an older autoconf
Diffstat (limited to 'tools')
-rw-r--r--[-rwxr-xr-x]tools/tcltk-man2html.tcl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/tcltk-man2html.tcl b/tools/tcltk-man2html.tcl
index c81acce..c443af9 100755..100644
--- a/tools/tcltk-man2html.tcl
+++ b/tools/tcltk-man2html.tcl
@@ -4,7 +4,7 @@ if {[catch {package require Tcl 8.6-} msg]} {
puts stderr "ERROR: $msg"
puts stderr "If running this script from 'make html', set the\
NATIVE_TCLSH environment\nvariable to point to an installed\
- tclsh8.7 (or the equivalent tclsh87.exe\non Windows)."
+ tclsh8.6 (or the equivalent tclsh86.exe\non Windows)."
exit 1
}
@@ -741,7 +741,11 @@ try {
# ... but try to extract (name, version) from subdir contents
try {
- set f [open [file join $pkgsDir $dir configure.ac]]
+ try {
+ set f [open [file join $pkgsDir $dir configure.in]]
+ } trap {POSIX ENOENT} {} {
+ set f [open [file join $pkgsDir $dir configure.ac]]
+ }
foreach line [split [read $f] \n] {
if {2 == [scan $line \
{ AC_INIT ( [%[^]]] , [%[^]]] ) } n v]} {