Handle '\r's in boot-pkgs files
authorIan Lynagh <igloo@earth.li>
Fri, 8 Apr 2011 11:47:23 +0000 (12:47 +0100)
committerIan Lynagh <igloo@earth.li>
Fri, 8 Apr 2011 11:47:23 +0000 (12:47 +0100)
By default, git will clone in autocrlf mode, which on Windows means
we get '\r's added to the ghc-packages files.

boot-pkgs

index 6acea11..de3008c 100644 (file)
--- a/boot-pkgs
+++ b/boot-pkgs
@@ -60,6 +60,7 @@ for $package (glob "libraries/*/") {
             or die "Failed to open $pkgs: $!";
         while (<PKGS>) {
             chomp;
+            s/\r//g;
             if (/.+/) {
                 push @library_dirs, "$package/$_";
             }