2005-12-05 06:11:09 -08:00
|
|
|
source $stdenv/setup
|
2003-11-25 09:38:48 -08:00
|
|
|
|
2004-04-14 03:55:33 -07:00
|
|
|
header "exporting $url (r$rev) into $out"
|
2003-11-25 09:38:48 -08:00
|
|
|
|
2006-07-17 08:22:20 -07:00
|
|
|
if test "$sshSupport"; then
|
|
|
|
export SVN_SSH="$openssh/bin/ssh"
|
|
|
|
fi
|
|
|
|
|
2006-05-30 05:43:45 -07:00
|
|
|
# Pipe the "p" character into Subversion to force it to accept the
|
|
|
|
# server's certificate. This is perfectly safe: we don't care
|
|
|
|
# whether the server is being spoofed --- only the cryptographic
|
|
|
|
# hash of the output matters.
|
|
|
|
echo 'p' | svn export -r "$rev" "$url" $out
|
2003-11-25 09:38:48 -08:00
|
|
|
|
2004-04-14 03:55:33 -07:00
|
|
|
actual=$(nix-hash $out)
|
2005-02-22 08:27:28 -08:00
|
|
|
if test "$actual" != "$outputHash"; then
|
|
|
|
echo "hash is $actual, expected $outputHash" >&2
|
2004-04-14 03:55:33 -07:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
stopNest
|