Next: &cindex()
Up: Overview of Jack
Previous: Overview of Jack
The job of &lindex() is to traverse the filesystem or specified directories, then abstract
out the keywords. &lindex() does this by making a list of directories that need to be indexed first,
then it repeatedly calls do_directory and do_index to index these files. The following is a quick
run-down on functions involved in &lindex().
- Name : sub parse_tag
Parameter : ($tag, *fields)
Function : Takes the meta tag $tag and returns the name and value in the
list *fields
- Name : sub do_index
Parameter : ($filename, $h_dir)
Function : Index the given filename.
- Name : sub print_res
Parameter : ($root_dir, $filename, $title, *tag_fields)
Function : Print the result to file in a specified format.
- Name : sub do_directory
Parameter : ($root_dir, $dir_name, $depth)
Function : take each sub_directory in $root_dir, and count
how deep it has gone, stop going into further sub-directories
after 3 levels of sub-directories.
- Name : sub lindex
Parameter : ($html_dir, $lindex_name, $temp_file, $log_file, $base_url, $Ifilename, $tilda)
Function : Main function to make Lindex, given the above parameters.
Tommy Wing Yiu Tsui
Tue Nov 7 10:21:32 EST 1995