librepcb: 1.1.0 -> 1.2.0
[NixPkgs.git] / pkgs / build-support / fetchsvnssh / builder.sh
blobe553446346de3af86fea8c580684b7d00acff974
1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
2 source $stdenv/setup
4 echo "exporting $url (r$rev) into $out"
6 if test "$sshSupport"; then
7 export SVN_SSH="$openssh/bin/ssh"
8 fi
10 # Pipe the "p" character into Subversion to force it to accept the
11 # server's certificate. This is perfectly safe: we don't care
12 # whether the server is being spoofed --- only the cryptographic
13 # hash of the output matters.
14 expect -f $sshSubversion "$username" "$password" "$rev" "$url" $out