#!/bin/sh
# \
exec tclsh $0

package require Itcl
namespace import -force itcl::* 

puts "\n Creating the tclIndex file ..."
if { [glob -nocomplain -- *.itcl *.tcl] != {} } {
	auto_mkindex [pwd] *.itcl *.tcl
	puts "   tclIndex file created !!!"
	puts "   Size of tclIndex file:  [exec wc tclIndex]"
} else {
	puts "\n Can't create tclIndex file: no *.itcl files found !!!"
}

puts " DONE.\n"
exit
