summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-rwxr-xr-xboot6
1 files changed, 5 insertions, 1 deletions
diff --git a/boot b/boot
index 2ce7acbb06..18d43aabda 100755
--- a/boot
+++ b/boot
@@ -144,7 +144,10 @@ sub boot_pkgs {
for $package (@library_dirs) {
my $dir = &basename($package);
- my @cabals = glob("$package/*.cabal");
+ my @cabals = glob("$package/*.cabal.in");
+ if ($#cabals < 0) {
+ @cabals = glob("$package/*.cabal");
+ }
if ($#cabals > 0) {
die "Too many .cabal file in $package\n";
}
@@ -155,6 +158,7 @@ sub boot_pkgs {
if (-f $cabal) {
$pkg = $cabal;
$pkg =~ s#.*/##;
+ $pkg =~ s/\.cabal.in$//;
$pkg =~ s/\.cabal$//;
$top = $package;
$top =~ s#[^/]+#..#g;