2 # ex:ts=4:sw=4:sts=4:et
3 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
5 import sys, copy, oe, oe.parse, oe.build
9 d = oe.parse.handle("conf/oe.conf", d)
11 if len(sys.argv) == 2:
13 d = oe.parse.handle(sys.argv[1], d)
17 # emit variables and shell functions
18 oe.data.emit_env(sys.__stdout__, d, True)
19 # emit the metadata which isnt valid shell
21 if oe.data.getVarFlag(e, 'python', d):
22 sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, oe.data.getVar(e, d, 1)))
23 elif oe.data.getVarFlag(e, 'func', d):
24 sys.__stdout__.write("\n%s () {\n%s}\n" % (e, oe.data.getVar(e, d, 1)))
26 sys.__stdout__.write("%s=%s\n" % (e, oe.data.getVar(e, d, 1)))