File: cpp_version

package info (click to toggle)
crawl 2%3A0.33.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 95,264 kB
  • sloc: cpp: 358,145; ansic: 27,203; javascript: 9,491; python: 8,359; perl: 3,327; java: 2,667; xml: 2,191; makefile: 1,830; sh: 611; objc: 250; cs: 15; sed: 9; lisp: 3
file content (8 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (5)
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 ; /^ *# *pragma *once/d' "$1"|cpp -x c++ -DTAG_MAJOR_VERSION=999 --std=c++11 -