0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
20 lines
427 B
Bash
20 lines
427 B
Bash
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
|
source $stdenv/setup
|
|
|
|
tagtext=""
|
|
tagflags=""
|
|
if test -n "$rev"; then
|
|
tagtext="(tag $rev) "
|
|
tagflags="--tag=$rev"
|
|
elif test -n "$context"; then
|
|
tagtext="(context) "
|
|
tagflags="--context=$context"
|
|
fi
|
|
|
|
header "getting $url $partial ${tagtext} into $out"
|
|
|
|
darcs get --lazy $tagflags "$url" "$out"
|
|
# remove metadata, because it can change
|
|
rm -rf "$out/_darcs"
|
|
|
|
stopNest
|