summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2006-09-06 12:46:40 +0000
committerIan Lynagh <igloo@earth.li>2006-09-06 12:46:40 +0000
commite291c4cef087ba1afa6d0ff026fb37b55b209e74 (patch)
tree2ffd678d7104b4a5c673dd97450dbe6e8182624c /darcs-all
parent01a263ee44ed71965c400d4d93950bc56c0aa058 (diff)
downloadhaskell-e291c4cef087ba1afa6d0ff026fb37b55b209e74.tar.gz
Tell the 6.6 branch where to find extralibs
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all23
1 files changed, 16 insertions, 7 deletions
diff --git a/darcs-all b/darcs-all
index 153f007c6d..186771ee41 100644
--- a/darcs-all
+++ b/darcs-all
@@ -7,6 +7,9 @@ top_dirs="nofib testsuite"
default_repo_root="http://darcs.haskell.org/ghc-6.6/"
default_lib_repo_root=$default_repo_root/packages
+default_extra_repo_root="http://darcs.haskell.org/"
+default_extra_lib_repo_root=$default_extra_repo_root/packages
+
quiet=NO
message()
@@ -53,13 +56,7 @@ darcsget()
cd libraries
- if test "$extra" = "YES"; then
- packages=`cat core-packages extra-packages`
- else
- packages=`cat core-packages`
- fi
-
- for pkg in $packages; do
+ for pkg in `cat core-packages`; do
if test -d $pkg; then
echo "warning: $pkg already present; omitting"
else
@@ -68,6 +65,18 @@ darcsget()
darcs get --partial $* $repo
fi
done
+
+ if test "$extra" = "YES"; then
+ for pkg in `cat extra-packages`; do
+ if test -d $pkg; then
+ echo "warning: $pkg already present; omitting"
+ else
+ repo=$default_extra_lib_repo_root/$pkg
+ message "== running darcs get --partial $* $repo"
+ darcs get --partial $* $repo
+ fi
+ done
+ fi
}
if test ! -d _darcs -o ! -d compiler; then