File: make_defs.py

package info (click to toggle)
libint2 2.7.2-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,792 kB
  • sloc: ansic: 842,934; cpp: 47,847; sh: 3,139; makefile: 1,017; f90: 676; perl: 482; python: 334
file content (8 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
import re, sys
f_in = open(sys.argv[1], 'r')
f_out = open(sys.argv[2], 'w')
for line in f_in:
    if re.match('^#', line) and not re.match('#include', line):
        f_out.write(line)
f_in.close()
f_out.close()