mkPkgIndex.tcl
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 infile = [lindex $argv 0]
00015 outfile = [lindex $argv 1]
00016
00017 ch = [open $infile]
00018 script = [read $ch]
00019 close $ch
00020
00021 ch = [open $outfile w]
00022
00023 foreach parameter [lrange $argv 2 end] {
00024 regexp {^([^=]+)=(.*)$} $parameter dummy name value
00025 regsub -all @${name}@ $script $value script
00026 }
00027
00028 puts $ch $script
00029 close $ch
00030
00031 exit 0
00032