X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FSConscript;h=c5e6c01ad27add5fcf7dfbda01ce2118f75a1881;hb=ad287a6e1241649e73188edf5b8902e4e65f615d;hp=cdb256a7ccc8dcf48888f5b1641fc4f0a5bfc6c2;hpb=9a988902090d28007578e93bffd809f6bd913155;p=senf.git diff --git a/Examples/SConscript b/Examples/SConscript index cdb256a..c5e6c01 100644 --- a/Examples/SConscript +++ b/Examples/SConscript @@ -1,10 +1,37 @@ -import sys, glob, os.path, datetime -sys.path.append('senfscons') +# -*- python -*- + Import('env') -import SENFSCons +import SENFSCons, glob, yaptu ########################################################################### +EXAMPLES = [] +for dox in sorted(glob.glob("*/Mainpage.dox")): + title = ([None] + [ line.split('\\mainpage',1)[-1].strip() for line in file(dox) + if '\\mainpage' in line ])[-1] + if title: + EXAMPLES.append( (dox.split('/',1)[0], title) ) + +MAINPAGE=""" +/** \mainpage Examples + + \htmlonly +
+ +{{ for name, title in EXAMPLES: +
${name}
${title}
+}} + +
+ \endhtmlonly + */ +""" + +file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary())) + SConscript(glob.glob("*/SConscript")) -SENFSCons.Doxygen(env) \ No newline at end of file +env.Clean('all','Mainpage.dox') +env.Clean('all_docs','Mainpage.dox') + +SENFSCons.Doxygen(env)