diff options
author | unknown <cmiller@zippy.cornsilk.net> | 2007-11-02 12:02:22 -0400 |
---|---|---|
committer | unknown <cmiller@zippy.cornsilk.net> | 2007-11-02 12:02:22 -0400 |
commit | 6dbc0c5ab18f6c1f69ef91a5b09359c5378d1eee (patch) | |
tree | 8ff8b379814514b9b8dea8ab1f8d7130e78e8215 /BitKeeper | |
parent | b01c89ed8cfc6c8397e8ef492ef75a9bd31d1865 (diff) | |
parent | 41c2a2c490522da0f163aa25ac88da9db74e0c66 (diff) | |
download | mariadb-git-6dbc0c5ab18f6c1f69ef91a5b09359c5378d1eee.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-community
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1
CMakeLists.txt:
Auto merged
configure.in:
Auto merged
sql/item_func.cc:
Auto merged
sql/sql_cache.cc:
Auto merged
Diffstat (limited to 'BitKeeper')
-rwxr-xr-x | BitKeeper/triggers/pre-commit.check-case.pl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/BitKeeper/triggers/pre-commit.check-case.pl b/BitKeeper/triggers/pre-commit.check-case.pl new file mode 100755 index 00000000000..4f68f8619e5 --- /dev/null +++ b/BitKeeper/triggers/pre-commit.check-case.pl @@ -0,0 +1,26 @@ +#!/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; |