diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-12-22 11:09:42 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-12-22 23:36:09 +0100 |
commit | 0c96ff4fe93a8983cb60a828267d720e16b8d503 (patch) | |
tree | bb61c865f706f0c7e627c6cf870e596bca708a9a /crawl-ref/source/util/checkwhite | |
parent | 39c929f09a2c402ed5d640752aa8204dc218b156 (diff) | |
download | crawl-ref-0c96ff4fe93a8983cb60a828267d720e16b8d503.tar.gz crawl-ref-0c96ff4fe93a8983cb60a828267d720e16b8d503.zip |
Adjust the list of file types exempted by checkwhite.
Diffstat (limited to 'crawl-ref/source/util/checkwhite')
-rwxr-xr-x | crawl-ref/source/util/checkwhite | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/util/checkwhite b/crawl-ref/source/util/checkwhite index 03b7908146..2cf772c59a 100755 --- a/crawl-ref/source/util/checkwhite +++ b/crawl-ref/source/util/checkwhite @@ -10,11 +10,12 @@ while(<FLIST>) next if /\.(png|ttf|ico|icns|fig|tex|eps|pdf)$/i; next if /\.(sln|vim|pbxproj|vsprops|plist)$/i; next if /\.(rb|pl)$/i; - next if /Makefile/i; next if /vcproj/; + next if /^\.gitmodules$/; next if /\.(lex|tab)\./; next if !/\./; - my $tab = /\.(rb|pl|Makefile)$/i; # Allow tabs for these files. + my $tab = /\.(rb|pl|sh)$/i; # Allow tabs for these files. + $tab = 1 if /Makefile/i; # ... and for makefiles. undef local $/; open F, "<$_" or die "Can't open $_"; my $file = $_; |