summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorPaolo Capriotti <p.capriotti@gmail.com>2012-05-07 23:21:20 +0100
committerPaolo Capriotti <p.capriotti@gmail.com>2012-05-07 23:24:58 +0100
commitd7bb8cd2c7d2806d01b732c412f99937240d9d02 (patch)
tree6d0cec2bc24d808558ce389b0c65e4939656e391 /sync-all
parent4614cf66198681734b0598668f84fb7cbcaf7fa9 (diff)
downloadhaskell-d7bb8cd2c7d2806d01b732c412f99937240d9d02.tar.gz
Follow upstream mtl and Cabal, add transformers package (#5958)
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all36
1 files changed, 36 insertions, 0 deletions
diff --git a/sync-all b/sync-all
index 87186de15c..7c1989277f 100755
--- a/sync-all
+++ b/sync-all
@@ -769,6 +769,42 @@ EOF
chdir($pwd);
}
+ message "== Checking for old mtl repo";
+ if (-d "libraries/mtl/.git") {
+ chdir("libraries/mtl");
+ if ((system "git log -1 c67d8f7247c612dc35242bc67e616f7ea35eadb9 > /dev/null 2> /dev/null") == 0) {
+ print <<EOF;
+============================
+ATTENTION!
+
+You have an old mtl repository in your GHC tree!
+
+Please remove it (e.g. "rm -r libraries/mtl"), and then run
+"./sync-all get" to get the new repository.
+============================
+EOF
+ }
+ chdir($pwd);
+ }
+
+ message "== Checking for old Cabal repo";
+ if (-d "libraries/Cabal/.git") {
+ chdir("libraries/Cabal");
+ if ((system "git log -1 c8ebd66a32865f72ae03ee0663c62df3d77f08fe > /dev/null 2> /dev/null") == 0) {
+ print <<EOF;
+============================
+ATTENTION!
+
+You have an old Cabal repository in your GHC tree!
+
+Please remove it (e.g. "rm -r libraries/Cabal"), and then run
+"./sync-all get" to get the new repository.
+============================
+EOF
+ }
+ chdir($pwd);
+ }
+
$? = $ec;
}