X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=darcs-all;h=632d54dffc25f1d91e7dc54c9a43109d721aee2e;hb=1bfdc3b39bbf5ab24ca5b24fd5fc711022b32ec7;hp=153f007c6d50007dae06b40311e27b6ee47e69ea;hpb=ffae661b22b966ac8c8cd2d554c78392a39a9128;p=ghc-hetmet.git diff --git a/darcs-all b/darcs-all index 153f007..632d54d 100644 --- a/darcs-all +++ b/darcs-all @@ -4,8 +4,15 @@ set -e top_dirs="nofib testsuite" -default_repo_root="http://darcs.haskell.org/ghc-6.6/" -default_lib_repo_root=$default_repo_root/packages +# Figure out where to get the other repositories from, +# based on where this GHC repo came from. +defaultrepo=`cat _darcs/prefs/defaultrepo` +case $defaultrepo in + http://* | *@*:*) + defaultrepo_lib=`echo $defaultrepo | sed 's!/ghc$!!'`/packages;; + /*) + defaultrepo_lib=$defaultrepo/libraries;; +esac quiet=NO @@ -45,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 @@ -63,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