summaryrefslogtreecommitdiffstats
path: root/tcllib/modules/control/genIndex
blob: 1d3c47b06627b48c90fd9d2189d50160c0ce1408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Utility program to generate tclIndex file

package require Tcl 8.3
set home [file join [pwd] [file dirname [info script]]]
cd $home
set files [glob -nocomplain *.tcl]
set idx [lsearch $files control.tcl]
set files [lreplace $files $idx $idx]
set idx [lsearch $files index.tcl]
set files [lreplace $files $idx $idx]
set idx [lsearch $files pkgIndex.tcl]
set files [lreplace $files $idx $idx]
eval [list auto_mkindex .] $files
#pkg_mkIndex -direct . control.tcl