diff options
author | Alexander Nozdrin <alik@sun.com> | 2009-12-11 09:20:49 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2009-12-11 09:20:49 +0300 |
commit | 376cf4275f28f6b8167eaf19b2c66dee41fbc5c5 (patch) | |
tree | 139dea6d6e6fe66bd13af0986d0957181db2f068 /BitKeeper/triggers/pre-commit.check-case.pl | |
parent | 160322439ab07cfdc2d26d2076041ab34a8f34cb (diff) | |
parent | ceefe7bb50b17b72e88851e3b98642e89a4cddae (diff) | |
download | mariadb-git-376cf4275f28f6b8167eaf19b2c66dee41fbc5c5.tar.gz |
Auto-merge from mysql-trunk.
Diffstat (limited to 'BitKeeper/triggers/pre-commit.check-case.pl')
-rwxr-xr-x | BitKeeper/triggers/pre-commit.check-case.pl | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/BitKeeper/triggers/pre-commit.check-case.pl b/BitKeeper/triggers/pre-commit.check-case.pl deleted file mode 100755 index 4f68f8619e5..00000000000 --- a/BitKeeper/triggers/pre-commit.check-case.pl +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/perl -my $status = 0; - -my $pending = $ENV{'BK_PENDING'}; -exit 0 unless -f $pending; - -open FI, "<", $pending || exit 0; -while(<FI>) { - my ($file, $stuff) = split /\|/, $_, 2; - next unless -f $file; - $file =~ s/^(.*)\/([^\/]*)$/$2/; - my $path = $1; - opendir DIR, $path; - my @files = sort map { lc } readdir DIR; - closedir DIR; - my %count = (); - $count{$_}++ for @files; - @files = grep { $count{$_} > 1 } keys %count; - if(@files > 0) { - print "$path/$file: duplicate file names: " . (join " ", @files) . "\n"; - $status = 1; - } -} -close FI; - -exit $status; |