File: createdefs.py

package info (click to toggle)
libtinymail 0.0.9-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,148 kB
  • ctags: 19,175
  • sloc: ansic: 151,565; xml: 20,145; sh: 9,245; makefile: 2,394; cs: 243; cpp: 141; python: 93; perl: 71
file content (17 lines) | stat: -rw-r--r-- 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))