summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorsven.panne@aedion.de <unknown>2006-12-03 13:48:24 +0000
committersven.panne@aedion.de <unknown>2006-12-03 13:48:24 +0000
commit961276aad92a5318719e3e996e7d0fc9b7daa2e3 (patch)
tree7dbb7ef5dd1b4ec681ed1a6997b2b1a8706c0093 /darcs-all
parent80a766fdb6864eae613962e43ad9eb371e0ce80c (diff)
downloadhaskell-961276aad92a5318719e3e996e7d0fc9b7daa2e3.tar.gz
Fixed and simplified repository calculation, works via SSH now, too
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all16
1 files changed, 5 insertions, 11 deletions
diff --git a/darcs-all b/darcs-all
index 1ab395b06f..632d54dffc 100644
--- a/darcs-all
+++ b/darcs-all
@@ -8,10 +8,10 @@ top_dirs="nofib testsuite"
# based on where this GHC repo came from.
defaultrepo=`cat _darcs/prefs/defaultrepo`
case $defaultrepo in
- http://*) default_repo_root=`echo $defaultrepo | sed 's!/ghc$!!'`
- default_lib_repo_root=$default_repo_root/packages;;
- /*) default_repo_root=$defaultrepo
- default_lib_repo_root=$default_repo_root/libraries;;
+ http://* | *@*:*)
+ defaultrepo_lib=`echo $defaultrepo | sed 's!/ghc$!!'`/packages;;
+ /*)
+ defaultrepo_lib=$defaultrepo/libraries;;
esac
quiet=NO
@@ -52,12 +52,6 @@ darcsget()
*) echo "warning: adding --partial, to override use --complete"
esac
- repo_root=`cat _darcs/prefs/defaultrepo`
- case $repo_root in
- /*) lib_repos=$repo_root/libraries;;
- *) lib_repos=$default_lib_repo_root;;
- esac
-
cd libraries
if test "$extra" = "YES"; then
@@ -70,7 +64,7 @@ darcsget()
if test -d $pkg; then
echo "warning: $pkg already present; omitting"
else
- repo=$lib_repos/$pkg
+ repo=$defaultrepo_lib/$pkg
message "== running darcs get --partial $* $repo"
darcs get --partial $* $repo
fi