2003-11-25 17:38:48 +00:00
|
|
|
. $stdenv/setup
|
|
|
|
|
2004-04-14 11:55:33 +01:00
|
|
|
header "exporting $url (r$rev) into $out"
|
2003-11-25 17:38:48 +00:00
|
|
|
|
2004-04-14 11:55:33 +01:00
|
|
|
prefetch=$(dirname $out)/svn-checkout-tmp-$md5
|
|
|
|
echo $prefetch
|
|
|
|
if test -e "$prefetch"; then
|
|
|
|
mv $prefetch $out
|
|
|
|
else
|
|
|
|
svn export -r "$rev" "$url" $out
|
|
|
|
fi
|
2003-11-25 17:38:48 +00:00
|
|
|
|
2004-04-14 11:55:33 +01:00
|
|
|
actual=$(nix-hash $out)
|
|
|
|
if test "$actual" != "$md5"; then
|
|
|
|
echo "hash is $actual, expected $md5" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
stopNest
|