diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-05-25 22:22:19 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-05-25 22:22:19 +0200 |
commit | 3e8ae9f69b97463cc8e498493e366a822f5a7788 (patch) | |
tree | a35a8dfd80bd39eda34a475a1697abd6d882041b /crawl-ref/source/util/db_lint | |
parent | 434edd5018f6c85ea9a414e2faf584f115116794 (diff) | |
download | crawl-ref-3e8ae9f69b97463cc8e498493e366a822f5a7788.tar.gz crawl-ref-3e8ae9f69b97463cc8e498493e366a822f5a7788.zip |
db_lint: check branch descriptions.
Diffstat (limited to 'crawl-ref/source/util/db_lint')
-rwxr-xr-x | crawl-ref/source/util/db_lint | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/util/db_lint b/crawl-ref/source/util/db_lint index 6d04e1ce94..9a05c9825f 100755 --- a/crawl-ref/source/util/db_lint +++ b/crawl-ref/source/util/db_lint @@ -123,11 +123,21 @@ read_file("descript/items"); read_file("descript/unident"); read_file("descript/spells"); read_file("descript/gods"); -read_file("descript/branches"); read_file("descript/skills"); read_file("descript/ability"); read_file("descript/commands"); +if (read_file("descript/branches")) +{ + for (`util/gather_branches`) + { + chomp; + err "$file: No description for branch '$_'\n" unless $entries{$_}; + delete $keys{$_}; + } + err "$file: Unused description for branch '$_'\n" for sort keys %keys; +} + if (read_file("descript/features")) { $entries{"A gate leading to a distant place"} = 1; |