summaryrefslogtreecommitdiff
path: root/Porting/bisect.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-11-25 18:39:04 +0100
committerNicholas Clark <nick@ccl4.org>2011-11-25 18:39:04 +0100
commit3ffe2687dcdff9d6f112d13ac4a27b78df0e01f9 (patch)
tree3260e508230995167b9609ba6e9ea295157fe541 /Porting/bisect.pl
parent1f1c809619768dcc645991969c9d72e5fe05a6b0 (diff)
downloadperl-3ffe2687dcdff9d6f112d13ac4a27b78df0e01f9.tar.gz
bisect.pl avoids perl-5.004 and earlier on case insensitive systems.
bisect.pl now probes to see if the checkout is on a case insensitive file system (such as the default HFS+ on OS X), and if so, uses perl-5.005 as the earliest stable release to test. This should make bisect.pl "just work" on a typical OS X system, for the vast majority of use cases.
Diffstat (limited to 'Porting/bisect.pl')
-rwxr-xr-xPorting/bisect.pl14
1 files changed, 12 insertions, 2 deletions
diff --git a/Porting/bisect.pl b/Porting/bisect.pl
index f2e68ce8ae..ee7214f62e 100755
--- a/Porting/bisect.pl
+++ b/Porting/bisect.pl
@@ -35,8 +35,18 @@ die "Can't find bisect runner $runner" unless -f $runner;
system $^X, $runner, '--check-args', '--check-shebang', @ARGV and exit 255;
# We try these in this order for the start revision if none is specified.
-my @stable = qw(perl-5.002 perl-5.003 perl-5.004 perl-5.005 perl-5.6.0
- perl-5.8.0 v5.10.0 v5.12.0 v5.14.0);
+my @stable = qw(perl-5.005 perl-5.6.0 perl-5.8.0 v5.10.0 v5.12.0 v5.14.0);
+
+{
+ my ($dev_C, $ino_C) = stat 'Configure';
+ my ($dev_c, $ino_c) = stat 'configure';
+ if (defined $dev_C && defined $dev_c
+ && $dev_C == $dev_c && $ino_C == $ino_c) {
+ print "You seem to to be on a case insensitive file system.\n\n";
+ } else {
+ unshift @stable, qw(perl-5.002 perl-5.003 perl-5.004)
+ }
+}
$end = 'blead' unless defined $end;