Commit cb5e6272 authored by Simon Marlow's avatar Simon Marlow

Figure out where the rest of the repositories are, based on defaultrepo

This is a slight improvement over the patch sent by jamey@minilop.net,
we now do it properly if the source repo was a GHC tree on the local
filesystem too.

Merge post 6.6.
parent 807c4b5f
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment