summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-10-06 10:00:49 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-10-06 10:00:49 +0000
commitcb5e627211db27c91450b897734d79f1fcd43a16 (patch)
tree3daccd9bf7b1a99a6037cd8bcd07a9c494e549a8 /darcs-all
parent807c4b5f58800a069092fc82fbb48a04f4e6cacd (diff)
downloadhaskell-cb5e627211db27c91450b897734d79f1fcd43a16.tar.gz
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.
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all11
1 files changed, 9 insertions, 2 deletions
diff --git a/darcs-all b/darcs-all
index 9efeab13e9..1ab395b06f 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