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