home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)mtool.tcl /main/hindenburg/2
- # Author: Marcel Bancken
- # Description: Instantiation of Mtool
- #---------------------------------------------------------------------------
- # SccsId = @(#)mtool.tcl /main/hindenburg/2 9 Dec 1996 Copyright 1994 Westmount Technology
-
- OtkRegister::gui
-
- source [m4_path_name tcl libocl.tcl]
-
- require platform.tcl
- require procs.tcl
- require messagehdl.tcl
- require clmtool.tcl
-
- proc usage {} {
- error "Usage: otk mtool.tcl -- <dispatcher> <command> \[directory\]"
- }
-
- if {[llength $argv] < 2} {
- usage
- exit 1
- }
-
- # An mtool has no context. So we only look for u_mtool.tcl in m4_home
- #
- if [catch {set file [m4_path_name tcl u_mtool.tcl]}] {
- resetErrorVars
- } else {
- source $file
- }
-
- ClMtool new .main [lindex $argv 0] [lindex $argv 1] [lindex $argv 2]
-