summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-04-25 12:46:20 +0000
committerIan Lynagh <igloo@earth.li>2007-04-25 12:46:20 +0000
commitc6ccf379b9f211c2f66202dae2bbaf3b92926f85 (patch)
tree4153d01fba1aaf0b827f6805fdcd7eddd599a33c /darcs-all
parente63653ad05e8123dc9d6df8f9ba891e0021ff71e (diff)
downloadhaskell-c6ccf379b9f211c2f66202dae2bbaf3b92926f85.tar.gz
Tweak darcs-all script
If you got darcs by SSH without specifying a username then the script would break.
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all4
1 files changed, 3 insertions, 1 deletions
diff --git a/darcs-all b/darcs-all
index f4642c0ece..65d661215e 100644
--- a/darcs-all
+++ b/darcs-all
@@ -8,9 +8,11 @@ top_dirs="nofib testsuite"
# based on where this GHC repo came from.
defaultrepo=`cat _darcs/prefs/defaultrepo`
case $defaultrepo in
- http://* | *@*:*)
+ # HTTP or SSH:
+ http://* | *:*)
defaultrepo_base="`echo $defaultrepo | sed 's!/ghc$!!'`"
defaultrepo_lib="$defaultrepo_base"/packages;;
+ # Local filesystem (assumes a checked-out tree):
/*)
defaultrepo_base="$defaultrepo"
defaultrepo_lib="$defaultrepo"/libraries;;