summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/cpp_version
blob: 2d3056c09e4e59985c70a00e2b4b4ea0c1bc14c9 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh

# Includes may depend on a generated header, let's not unnecessarily 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 -