diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-10-21 14:23:34 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-10-21 17:19:32 +0200 |
commit | 36c15a30b61939cf4696f6afe9bc4c271d532527 (patch) | |
tree | 6ca254f834a3b84374efc0b4f6fa989218725fe8 /crawl-ref/source/util/cpp_version | |
parent | 9c73675eed97b79398856970d02cf02c759ae9bb (diff) | |
download | crawl-ref-36c15a30b61939cf4696f6afe9bc4c271d532527.tar.gz crawl-ref-36c15a30b61939cf4696f6afe9bc4c271d532527.zip |
Obey TAG_MAJOR_VERSION #ifdefs when gathering strings.
Diffstat (limited to 'crawl-ref/source/util/cpp_version')
-rwxr-xr-x | crawl-ref/source/util/cpp_version | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/util/cpp_version b/crawl-ref/source/util/cpp_version new file mode 100755 index 0000000000..8805ce04c0 --- /dev/null +++ b/crawl-ref/source/util/cpp_version @@ -0,0 +1,8 @@ +#!/bin/sh + +# Includes may depend on a generated header, let's not unnecesarily require +# compilation just to gather strings. +# +# Use a future version tag, we remove descs immediately even though the item/ +# monster is fully removed only after a save compat bump. +sed '/^ *# *include/d' "$1"|cpp -DTAG_MAJOR_VERSION=999 - |