File: createdefs.py

package info (click to toggle)
pygobject-2 2.28.6-12
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,076 kB
  • ctags: 7,116
  • sloc: xml: 20,728; ansic: 18,657; python: 16,282; sh: 11,109; makefile: 868
file content (17 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
import sys

def main(args):
    output = args[1]
    input = args[2:]
    outfd = open(output, 'w')
    outfd.write(';; -*- scheme -*-\n')
    outfd.write(';; THIS FILE IS GENERATED - DO NOT EDIT\n')
    for filename in input:
        outfd.write('(include "%s")\n' % filename)
    outfd.close()

    return 0

if __name__ == '__main__':
    sys.exit(main(sys.argv))