File: SConstruct_debug_count

package info (click to toggle)
scons 4.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,180 kB
  • sloc: xml: 202,012; python: 137,621; javascript: 4,670; sh: 1,049; perl: 493; ruby: 229; makefile: 213; ansic: 188; java: 139; f90: 108; cpp: 71; yacc: 39; lex: 10; fortran: 3
file content (10 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
if ARGUMENTS.get('JSON',False):
    DebugOptions(json=ARGUMENTS.get('JSON'))


DefaultEnvironment(tools=[])
def cat(target, source, env):
    with open(str(target[0]), 'wb') as f, open(str(source[0]), 'rb') as infp:
        f.write(infp.read())
env = Environment(BUILDERS={'Cat':Builder(action=Action(cat))})
env.Cat('file.out', 'file.in')