1 #!/nix/var/nix/profiles/default/bin/expect -f
4 set username [lindex $argv 0]
5 set password [lindex $argv 1]
6 set rev [lindex $argv 2]
7 set url [lindex $argv 3]
8 set out [lindex $argv 4]
11 spawn svn export -r$rev svn+ssh://$username@$url $out
14 expect "*continue connecting*" { send -- "yes\r"; expect "*?assword:*"; send -- "$password\r" } \
15 "*?assword:*" { send -- "$password\r" }