valgrind Run all tests under valgrind/memcheck
""")
-env.Replace(
- PKGDRAW = 'doclib/pkgdraw',
-)
-
env.Append(
ENV = { 'PATH' : os.environ.get('PATH') },
CLEAN_PATTERNS = [ '*~', '#*#', '*.pyc', 'semantic.cache', '.sconsign*' ],
env.Append( ENV = {
'TODAY' : str(datetime.date.today()),
- 'TEXINPUTS' : os.environ.get('TEXINPUTS',env.Dir('#/doclib').abspath + ':'),
'DOXYGEN' : str(env.File(env['DOXYGEN'])),
})
texf.write(TEX_FOOTER)
texf.close()
+os.environ['TEXINPUTS'] = "%s:%s" % (os.environ.get('TEXINPUTS',''), os.path.abspath(basedir))
if os.system("cd %s; %s/textogif -png -dpi 80 -res 0.25 fields >pkgdraw.log 2>&1"
% (tmpdir, basedir)) != 0:
sys.stderr.write("Conversion failed. See %s\n" % tmpdir)
-import os
+import os, os.path
import SCons.Builder, SCons.Action
+libdir = os.path.join(os.path.dirname(os.path.dirname(__file__)),'lib')
+
PkgDraw = SCons.Builder.Builder(
suffix = ".png",
src_suffix = ".hh",
def generate(env):
env['BUILDERS']['PkgDraw'] = PkgDraw
- env['PKGDRAW'] = "pkgdraw"
+ env['PKGDRAW'] = "%s/pkgdraw" % libdir
env['PKGDRAWCOM'] = "$PKGDRAW $SOURCE $TARGET $PKGDRAWPACKETS -- $CPPFLAGS $_CPPINCFLAGS $_CPPDEFFLAGS"
env['PKGDRAWPACKETS'] = ''