X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=darcs-all;h=1ab395b06ffefa0141efd5af0e57d44a8059108e;hp=153f007c6d50007dae06b40311e27b6ee47e69ea;hb=5adfdfb259415ca99d67d3c8b9e5df68cb736326;hpb=ffae661b22b966ac8c8cd2d554c78392a39a9128 diff --git a/darcs-all b/darcs-all index 153f007..1ab395b 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://*) 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;; +esac quiet=NO