summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-04-19 15:46:32 +0200
committerJoachim Breitner <mail@joachim-breitner.de>2014-04-19 15:47:58 +0200
commit974a97e3e5f74177d9c09ceda060205959e2f15a (patch)
tree05ae23c0c5715779e79b411b05a34463516b49ea
parent2eb40eba2629e23a79671ff7dfafc7f37f750e22 (diff)
downloadhaskell-974a97e3e5f74177d9c09ceda060205959e2f15a.tar.gz
sync-all: Apply submodule url rewriting also to stuff in util/
-rwxr-xr-xsync-all8
1 files changed, 4 insertions, 4 deletions
diff --git a/sync-all b/sync-all
index 4c0e7c19a7..70c425411f 100755
--- a/sync-all
+++ b/sync-all
@@ -476,13 +476,13 @@ sub gitall {
$ignore_failure = 1;
if ($remotepath eq '-') {
$rpath = "$localpath.git"; # N.B.: $localpath lacks the .git suffix
- if ($localpath =~ /^libraries\//) {
+ if ($localpath =~ m!^(?:libraries|utils)/!) {
# FIXME: This is just a simple heuristic to
# infer the remotepath for Git submodules. A
# proper solution would require to parse the
# .gitmodules file to obtain the actual
# localpath<->remotepath mapping.
- $rpath =~ s/^libraries\//packages\//;
+ $rpath =~ s!^(?:libraries|utils)/!packages/!;
}
$rpath = "$repo_base/$rpath";
} else {
@@ -587,14 +587,14 @@ sub gitInitSubmodules {
my $submodulespaths = &readgit(".", "config", "--get-regexp", "^submodule[.].*[.]url");
# if we came from github, change the urls appropriately
- while ($submodulespaths =~ m!^(submodule.libraries/[a-zA-Z0-9]+.url) ($GITHUB)/ghc/packages/([a-zA-Z0-9]+).git$!gm) {
+ while ($submodulespaths =~ m!^(submodule.(?:libraries|utils)/[a-zA-Z0-9]+.url) ($GITHUB)/ghc/packages/([a-zA-Z0-9]+).git$!gm) {
&git(".", "config", $1, "$2/ghc/packages-$3");
}
# if we came from a local repository, grab our submodules from their
# checkouts over there, if they exist.
if ($repo_local) {
- while ($submodulespaths =~ m!^(submodule.(libraries/[a-zA-Z0-9]+).url) .*$!gm) {
+ while ($submodulespaths =~ m!^(submodule.((?:libraries|utils)/[a-zA-Z0-9]+).url) .*$!gm) {
if (-e "$repo_base/$2/.git") {
&git(".", "config", $1, "$repo_base/$2");
}