home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
sdarchive
/
Update.tcl
< prev
Wrap
Text File
|
2003-04-15
|
648b
|
26 lines
# Utility to check all the Starkits against the
# sdarchive using the starsync facilities in sdx
# I run this manually by starting tclkit, then
# sourcing sdx.kit. That gives a little command
# propt. Type anything there to get to the main
# Tcl prompt. Source this file, then run UpdateAll
set server http://mini.net/sync.cgi
package require starsync
proc Update {} {
foreach f [glob *.kit] {
set catalog [starsync::request $::server $f]
puts $f\n[starsync::summary $catalog]
update
}
}
proc UpdateAll {} {
foreach dir {applications doc games packages} {
cd $dir
Update
cd ..
}
}