X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FExt%2FSConscript;fp=senf%2FExt%2FSConscript;h=772dad7b74849ab3b220e50dd2a6e4bc293fce26;hb=af2ad28d50286dae94a24fd71a3f10236b4833c7;hp=90dcbc4c86b07ddcf0cf32cbf9ef1081e24cc033;hpb=2b506f4b1c9e8a336ed668fc1690a68376e393dc;p=senf.git diff --git a/senf/Ext/SConscript b/senf/Ext/SConscript index 90dcbc4..772dad7 100644 --- a/senf/Ext/SConscript +++ b/senf/Ext/SConscript @@ -7,40 +7,41 @@ import SENFSCons, glob, os.path, yaptu sconscripts = sorted(glob.glob("*/SConscript")) -EXTENSIONS = [] -for script in sconscripts: - name = os.path.split(script)[0] - dox = os.path.join(name, 'Mainpage.dox') - title = '' - if os.path.exists(dox): - title = ([''] + [ line.split('\\mainpage',1)[-1].strip() for line in file(dox) - if '\\mainpage' in line ])[-1] - EXTENSIONS.append((name, title)) - +if sconscripts: + EXTENSIONS = [] + for script in sconscripts: + name = os.path.split(script)[0] + dox = os.path.join(name, 'Mainpage.dox') + title = '' + if os.path.exists(dox): + title = ([''] + [ line.split('\\mainpage',1)[-1].strip() for line in file(dox) + if '\\mainpage' in line ])[-1] + EXTENSIONS.append((name, title)) -MAINPAGE=""" -/** \mainpage Extensions - This folder contains additional SENF extensions which are built - into the senf libarary but are not part of senf proper. + MAINPAGE=""" + /** \mainpage Extensions - \htmlonly -
+ This folder contains additional SENF extensions which are built + into the senf libarary but are not part of senf proper. -{{ for name, title in EXTENSIONS: -
${name}
${title}
-}} + \htmlonly +
-
- \endhtmlonly - */ -""" + {{ for name, title in EXTENSIONS: +
${name}
${title}
+ }} -file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary())) +
+ \endhtmlonly + */ + """ -SConscript(sconscripts) + file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary())) -env.Clean('all','Mainpage.dox') -env.Clean('all_docs','Mainpage.dox') + SConscript(sconscripts) -SENFSCons.Doxygen(env) + env.Clean('all','Mainpage.dox') + env.Clean('all_docs','Mainpage.dox') + + SENFSCons.Doxygen(env)