actions.tcl File Reference

Go to the source code of this file.

Functions/Subroutines

ret _null (type args)
ret _tcl (type module, type libdir)
ret _tcr (type module, type libdir)
ret _doc (type module, type libdir)
ret _msg (type module, type libdir)
ret _tex (type module, type libdir)
ret _tci (type module, type libdir)
ret _manfile (type f, type format, type ext, type docdir)
ret _man (type module, type format, type ext, type docdir)
ret _exa (type module, type exadir)

Function Documentation

ret _doc ( type  module,
type  libdir 
)

Definition at line 29 of file actions.tcl.

References _tcl(), file(), and global().

00029                                       {
00030     global distribution
00031 
00032     _tcl $module $libdir
00033     xcopy \
00034         [file join $distribution modules $module mpformats] \
00035         [file join $libdir $module mpformats] \
00036         1
00037     return
00038 }

Here is the call graph for this function:

ret _exa ( type  module,
type  exadir 
)

Definition at line 232 of file actions.tcl.

00232                                       {
00233     global distribution
00234     xcopy \
00235         [file join $distribution examples $module] \
00236         [file join $exadir $module] \
00237         1
00238     return
00239 }

ret _man ( type  module,
type  format,
type  ext,
type  docdir 
)

Definition at line 185 of file actions.tcl.

00185                                                                {
00186     global distribution argv argc argv0 config
00187 
00188     # [SF Tcllib Bug 784519]
00189     # Directly access the bundled doctools package to ensure that
00190     # we have the truly latest code for that, and not the doctools
00191     # the executing tclsh would find on its own. The present query is
00192     # used to ensure that we load the package only once.
00193 
00194     #package require doctools
00195     if {[catch {package present doctools}]} {
00196     uplevel #0 [list source [file join $distribution modules doctools doctools.tcl]]
00197     }
00198     ::doctools::new dt -format $format -module $module
00199 
00200     foreach f [glob -nocomplain [file join $distribution modules $module *.man]] {
00201 
00202     set out [file join $docdir [file rootname [file tail $f]]].$ext
00203 
00204     log "Generating $out"
00205     if {$config(dry)} {continue}
00206 
00207     dt configure -file $f
00208     file mkdir [file dirname $out]
00209 
00210     set data [dt format [get_input $f]]
00211     switch -exact -- $format {
00212         nroff {
00213         set data [string map \
00214             [list \
00215             {.so man.macros} \
00216             $config(man.macros)] \
00217             $data]
00218         }
00219         html {}
00220     }
00221     write_out $out $data
00222 
00223     set warnings [dt warnings]
00224     if {[llength $warnings] > 0} {
00225         log [join $warnings \n]
00226     }
00227     }
00228     dt destroy
00229     return
00230 }

ret _manfile ( type  f,
type  format,
type  ext,
type  docdir 
)

Definition at line 147 of file actions.tcl.

00147                                                               {
00148     global distribution argv argc argv0 config
00149 
00150     set out [file join $docdir [file rootname [file tail $f]]].$ext
00151 
00152     log "Generating $out"
00153     if {$config(dry)} return
00154 
00155     if {[catch {package present doctools}]} {
00156     uplevel #0 [list source [file join $distribution modules doctools doctools.tcl]]
00157     }
00158 
00159     ::doctools::new dt -format $format -file $f
00160 
00161     file mkdir [file dirname $out]
00162 
00163     set data [dt format [get_input $f]]
00164     switch -exact -- $format {
00165     nroff {
00166         set data [string map \
00167             [list \
00168             {.so man.macros} \
00169             $config(man.macros)] \
00170             $data]
00171     }
00172     html {}
00173     }
00174     write_out $out $data
00175 
00176     set warnings [dt warnings]
00177     if {[llength $warnings] > 0} {
00178     log [join $warnings \n]
00179     }
00180 
00181     dt destroy
00182     return
00183 }

ret _msg ( type  module,
type  libdir 
)

Definition at line 40 of file actions.tcl.

References _tcl(), file(), and global().

00040                                       {
00041     global distribution
00042 
00043     _tcl $module $libdir
00044     xcopy \
00045         [file join $distribution modules $module msgs] \
00046         [file join $libdir $module msgs] \
00047         1
00048     return
00049 }

Here is the call graph for this function:

ret _null ( type  args  ) 

Definition at line 9 of file actions.tcl.

00009 {}

ret _tci ( type  module,
type  libdir 
)

Definition at line 62 of file actions.tcl.

References _tcl(), file(), and global().

00062                                       {
00063     global distribution
00064 
00065     _tcl $module $libdir
00066     xcopyfile [file join $distribution modules $module tclIndex] \
00067         [file join $libdir $module]
00068     return
00069 }

Here is the call graph for this function:

ret _tcl ( type  module,
type  libdir 
)

Definition at line 11 of file actions.tcl.

References file(), and global().

Referenced by _doc(), _msg(), _tci(), and _tex().

00011                                       {
00012     global distribution
00013     xcopy \
00014         [file join $distribution modules $module] \
00015         [file join $libdir $module] \
00016         0 *.tcl
00017     return
00018 }

Here is the call graph for this function:

Here is the caller graph for this function:

ret _tcr ( type  module,
type  libdir 
)

Definition at line 20 of file actions.tcl.

References file(), and global().

00020                                       {
00021     global distribution
00022     xcopy \
00023         [file join $distribution modules $module] \
00024         [file join $libdir $module] \
00025         1 *.tcl
00026     return
00027 }

Here is the call graph for this function:

ret _tex ( type  module,
type  libdir 
)

Definition at line 51 of file actions.tcl.

References _tcl(), file(), and global().

00051                                       {
00052     global distribution
00053 
00054     _tcl $module $libdir
00055     xcopy \
00056         [file join $distribution modules $module] \
00057         [file join $libdir $module] \
00058         0 *.tex
00059     return
00060 }

Here is the call graph for this function:


Generated on 21 Sep 2010 for Gui by  doxygen 1.6.1