File: cpp_version

package info (click to toggle)
crawl 2%3A0.34.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 100,204 kB
  • sloc: cpp: 363,900; ansic: 27,765; javascript: 9,516; python: 8,463; perl: 3,293; java: 3,132; xml: 2,380; makefile: 1,835; sh: 611; objc: 250; cs: 15; sed: 9; lisp: 3
file content (8 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (6)
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 -