doc/cmd.tcl

Go to the documentation of this file.
00001 /*  -*- tcl -*-*/
00002 /*  Implementation of 'doc'.*/
00003 
00004 /*  Available variables*/
00005 /*  * argv  - Cmdline arguments*/
00006 /*  * base  - Location of sak.tcl = Topd directory of Tcllib distribution*/
00007 /*  * cbase - Location of all files relevant to this command.*/
00008 /*  * sbase - Location of all files supporting the SAK.*/
00009 
00010 if {![llength $argv]} {
00011      format =  * 
00012 } else {
00013      format =  [lindex $argv 0]*
00014      argv =    [lrange $argv 1 end]
00015 }
00016 
00017 package require sak::util
00018 if {![sak::util::checkModules argv]} return
00019 
00020  matches =  0
00021 foreach f {html nroff tmml text wiki latex dvi ps pdf list validate} {
00022     if {![string match $format $f]} continue
00023     incr matches
00024 }
00025 if {!$matches} {
00026     puts "  No format matching \"$format\""
00027     return
00028 }
00029 
00030 /*  ###*/
00031 
00032 package require sak::doc
00033 
00034 foreach f {html nroff tmml text wiki latex dvi ps pdf list validate} {
00035     if {![string match $format $f]} continue
00036     sak::doc::$f $argv
00037 }
00038 
00039 /** 
00040  * ###
00041 

Generated on 21 Sep 2010 for Gui by  doxygen 1.6.1