File: checkout

package info (click to toggle)
tkcon 2%3A2.7.11-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,508 kB
  • sloc: tcl: 6,680; sh: 1,171; perl: 81; makefile: 63; exp: 23
file content (30 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/expect

switch -- [llength $argv] {
    0 {
	set date "now"
	set dir .
    }
    1 {
	set date "now"
	set dir [lindex $argv 0]
    }
    default {
	set date [lindex $argv 1]
	set dir [lindex $argv 0]
    }
}

# Add 1 day to the date
set seconds [expr {[clock scan $date -gmt 1] + 24*60*60}]
set date [clock format $seconds -format "%Y-%m-%d GMT" -gmt 1]

cd $dir

set cvsroot ":pserver:anonymous@tkcon.cvs.sourceforge.net:/cvsroot/tkcon"
spawn cvs -q -d$cvsroot login
expect -re "assword: "
send "\r"
system "cvs -q -d$cvsroot -z9 co -D \"$date\" tkcon"
system "cvs -q -d$cvsroot logout"