summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/checkwhite
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-12-22 11:09:42 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-12-22 23:36:09 +0100
commit0c96ff4fe93a8983cb60a828267d720e16b8d503 (patch)
treebb61c865f706f0c7e627c6cf870e596bca708a9a /crawl-ref/source/util/checkwhite
parent39c929f09a2c402ed5d640752aa8204dc218b156 (diff)
downloadcrawl-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-xcrawl-ref/source/util/checkwhite5
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 = $_;