Commit f73d60be authored by ian@well-typed.com's avatar ian@well-typed.com

Use submodules for repositories with upstreams

parent 948f101d
......@@ -43,20 +43,14 @@ _darcs/
# sub-repositories
/ghc-tarballs/
/libraries/Cabal/
/libraries/Win32/
/libraries/array/
/libraries/base/
/libraries/binary/
/libraries/bytestring/
/libraries/containers/
/libraries/deepseq/
/libraries/directory/
/libraries/dph/
/libraries/extensible-exceptions/
/libraries/filepath/
/libraries/ghc-prim/
/libraries/haskeline/
/libraries/haskell2010/
/libraries/haskell98/
/libraries/hoopl/
......@@ -67,18 +61,12 @@ _darcs/
/libraries/old-locale/
/libraries/old-time/
/libraries/parallel/
/libraries/pretty/
/libraries/primitive/
/libraries/process/
/libraries/random/
/libraries/stm/
/libraries/template-haskell/
/libraries/terminfo/
/libraries/transformers
/libraries/unix/
/libraries/utf8-string/
/libraries/vector/
/libraries/xhtml/
/nofib/
/testsuite/
/utils/haddock/
......
[submodule "libraries/binary"]
path = libraries/binary
url = http://darcs.haskell.org/libraries/binary.git/
[submodule "libraries/bytestring"]
path = libraries/bytestring
url = http://darcs.haskell.org/libraries/bytestring.git/
[submodule "libraries/Cabal"]
path = libraries/Cabal
url = http://darcs.haskell.org/libraries/Cabal.git/
[submodule "libraries/containers"]
path = libraries/containers
url = http://darcs.haskell.org/libraries/containers.git/
[submodule "libraries/haskeline"]
path = libraries/haskeline
url = http://darcs.haskell.org/libraries/haskeline.git/
[submodule "libraries/pretty"]
path = libraries/pretty
url = http://darcs.haskell.org/libraries/pretty.git/
[submodule "libraries/terminfo"]
path = libraries/terminfo
url = http://darcs.haskell.org/libraries/terminfo.git/
[submodule "libraries/transformers"]
path = libraries/transformers
url = http://darcs.haskell.org/libraries/transformers.git/
[submodule "libraries/xhtml"]
path = libraries/xhtml
url = http://darcs.haskell.org/libraries/xhtml.git/
[submodule "libraries/Win32"]
path = libraries/Win32
url = http://darcs.haskell.org/libraries/Win32.git/
[submodule "libraries/primitive"]
path = libraries/primitive
url = http://darcs.haskell.org/libraries/primitive.git/
[submodule "libraries/vector"]
path = libraries/vector
url = http://darcs.haskell.org/libraries/vector.git/
Cabal @ 532e349e
Subproject commit 532e349ec6ee33fc3477137b44f108d3658d0528
Win32 @ 21335a30
Subproject commit 21335a30161c099da79ae9619c9782e5e32e4644
binary @ 2d31cea2
Subproject commit 2d31cea238d0d08885c457475fc354dbf2b88976
bytestring @ 6bd69fe2
Subproject commit 6bd69fe27af33e878e38f4c579983f6a23120a87
containers @ a9b72240
Subproject commit a9b7224068ae60f73baacd5f76d2c27624d90120
haskeline @ 9ad00926
Subproject commit 9ad00926f832f4e5f5d38c8fe84bfc85f4e8f728
pretty @ ab7e8d91
Subproject commit ab7e8d91470bb94c9e184dffbec89d0aae116f9b
primitive @ 75c3379b
Subproject commit 75c3379b6d76e914cc3c7ffd290b6b1cad7ea3e6
terminfo @ 579d2c32
Subproject commit 579d2c324e69856ff8d1ea8b5036e30c920e1973
transformers @ a59fb938
Subproject commit a59fb93860f84ccd44178dcbbb82cfea7e02cd07
vector @ c4c5a740
Subproject commit c4c5a740ec977a4300449bc85f4707ec641be923
xhtml @ fb9e0bbb
Subproject commit fb9e0bbb69e15873682a9f25d39652099a3ccac1
......@@ -117,6 +117,16 @@ sub parsePackages {
}
}
sub tryReadFile {
my $filename = shift;
my @lines;
open (FH, $filename) or return "";
@lines = <FH>;
close FH;
return join('', @lines);
}
sub message {
if ($verbose >= 2) {
print "@_\n";
......@@ -751,6 +761,14 @@ sub main {
}
scmall ($command, @_);
if ($command eq "get" or $command eq "pull") {
my $gitConfig = &tryReadFile(".git/config");
if ($gitConfig !~ /submodule/) {
&scm(".", "git", "submodule", "init");
}
&scm(".", "git", "submodule", "update");
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment