X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=satscons%2FDoxygen.py;h=27131e3899d5d39f70fd6ab80cf514a0e15be2ce;hb=b2d64a4084a053f0887c7845bb81074e0cd3a855;hp=975bbe0f42c273bc0812f7bc308ea2150c488c13;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/satscons/Doxygen.py b/satscons/Doxygen.py index 975bbe0..27131e3 100644 --- a/satscons/Doxygen.py +++ b/satscons/Doxygen.py @@ -8,17 +8,18 @@ def replace_ext(n,ext): return base+ext def Doxygen(env, target, source, image=[]): + global __file__ path, name = os.path.split(str(target)) stamp = os.path.join(path, '.'+name+'.stamp') dir = env.Dir(target) + mak = os.path.join(os.path.split(__file__)[0],'imgconvert.mak') env.Depends(dir, [ env.Command(os.path.splitext(img)[0]+".png", img, - [ 'TERM=dumb make -f imgconvert.mak $TARGET' ]) + [ 'TERM=dumb make -f %s $TARGET' % mak ]) for img in image ] + [ env.Command(stamp, source, [ 'cd $TARGET.dir && $DOXYGENCOM', - 'cd $TARGET.dir/doc/html && (sed -ne \'1,//p\' \' \' -k4 && sed -ne \'/<\\/table>/,$$p\' annotated.html.new && mv annotated.html.new annotated.html', - 'touch $TARGET' ], + "touch $TARGET" ], source_scanner = SCons.Defaults.ObjSourceScan) ]) env.Clean(stamp, dir) return dir