source/util/cpp_version
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # Includes may depend on a generated header, let's not unnecessarily require |
| 4 | # compilation just to gather strings. |
| 5 | # |
| 6 | # Use a future version tag, we remove descs immediately even though the item/ |
| 7 | # monster is fully removed only after a save compat bump. |
| 8 | sed '/^ *# *include/d ; /^ *# *pragma *once/d' "$1"|cpp -x c++ -DTAG_MAJOR_VERSION=999 --std=c++11 - |