2006-01-30 11:18:38 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tagtext=""
|
|
|
|
tagflags=""
|
|
|
|
if test -n "$tag"; then
|
|
|
|
tagtext="(tag $tag) "
|
|
|
|
tagflags="--tag=$tag"
|
2009-05-13 20:02:23 +01:00
|
|
|
elif test -n "$context"; then
|
|
|
|
tagtext="(context) "
|
|
|
|
tagflags="--context=$context"
|
2006-01-30 11:18:38 +00:00
|
|
|
fi
|
|
|
|
|
2008-03-06 02:46:29 +00:00
|
|
|
header "getting $url $partial ${tagtext} into $out"
|
2006-01-30 11:18:38 +00:00
|
|
|
|
2009-05-13 20:02:23 +01:00
|
|
|
darcs get --lazy --ephemeral $tagflags "$url" "$out"
|
2006-01-30 11:18:38 +00:00
|
|
|
# remove metadata, because it can change
|
|
|
|
rm -rf "$out/_darcs"
|
|
|
|
|
|
|
|
stopNest
|