X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=darcs-all;h=1ab395b06ffefa0141efd5af0e57d44a8059108e;hp=9efeab13e9d5f0cbcbd554eb4096c895d897f640;hb=5adfdfb259415ca99d67d3c8b9e5df68cb736326;hpb=cc4e58b669ea557909bde4307b0cc5fed19de919 diff --git a/darcs-all b/darcs-all index 9efeab1..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/" -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