pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / build-support / fetchsvnssh / sshsubversion.exp
blobc00f39714e5bd56693be25ea0fff74b2d34b89c4
1 #!/nix/var/nix/profiles/default/bin/expect -f
3 # Set variables
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]
9 set timeout -1
11 spawn svn export -r$rev svn+ssh://$username@$url $out
12 match_max 100000
14 expect "*continue connecting*" { send -- "yes\r"; expect "*?assword:*"; send -- "$password\r" } \
15 "*?assword:*" { send -- "$password\r" }
17 expect "*?assword:*"
18 send -- "$password\r"
20 # Send blank line
21 send -- "\r"
22 expect eof