Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
auto_mkindex dir pattern pattern ...
Generates an index suitable for use by auto_load. The command searches dir for all files whose names match any of the pattern arguments (matching is done with the glob command), generates an index of all the Tcl command procedures defined in all the matching files, and stores the index information in a file named tclIndex in dir. If no pattern is given a pattern of *.tcl will be assumed. For example, the command
auto_mkindex foo *.tcl
will read all the .tcl files in subdirectory foo and generate a new index file foo/tclIndex.
Auto_mkindex parses the Tcl scripts by sourcing them into a slave interpreter and monitoring the proc and namespace commands that are executed. Extensions can use the (undocumented) auto_mkindex_parser package to register other commands that can contribute to the auto_load index. You will have to read through auto.tcl to see how this works.