summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>2007-07-18 03:45:11 +0000
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>2007-07-18 03:45:11 +0000
commitc6eadadbefe2ec5709e9d31893f79c4ff78754b4 (patch)
treecb4cbf0758ae091ba8523291419b4f9f44a5236d /darcs-all
parent8bac478832e0cf9fa7ad1cfc81c08b0b9f13938e (diff)
downloadhaskell-c6eadadbefe2ec5709e9d31893f79c4ff78754b4.tar.gz
darcs-all: allow relative path for repo in local fs
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all7
1 files changed, 6 insertions, 1 deletions
diff --git a/darcs-all b/darcs-all
index 72e1ed3354..7743e8a857 100644
--- a/darcs-all
+++ b/darcs-all
@@ -18,7 +18,12 @@ if ($defaultrepo =~ /:/) {
$defaultrepo_lib = "$defaultrepo_base/packages";
}
elsif ($defaultrepo =~ /^\//) {
- # Local filesystem (assumes a checked-out tree):
+ # Local filesystem, absolute path (assumes a checked-out tree):
+ $defaultrepo_base = $defaultrepo;
+ $defaultrepo_lib = "$defaultrepo/libraries";
+}
+elsif ($defaultrepo =~ /^..\//) {
+ # Local filesystem, relative path (assumes a checked-out tree):
$defaultrepo_base = $defaultrepo;
$defaultrepo_lib = "$defaultrepo/libraries";
}