minor fixes for clang++
[senf.git] / HowTos / SConscript
index 86793ee..2b70a1b 100644 (file)
@@ -1,34 +1,11 @@
 # -*- python -*-
 
 Import('env')
-import SENFSCons, glob, sys
-import yaptu
+import SENFSCons, glob, yaptu
 
 ###########################################################################
 
-HOWTOS = []
-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:
-        HOWTOS.append( (dox.split('/',1)[0], title) )
-
-MAINPAGE="""
-/** \mainpage HowTo's
-
-    \htmlonly
-    <dl>
-
-{{  for name, title in HOWTOS:
-      <dt><a href="../../${name}/doc/html/index.html">${name}</a></dt><dd>${title}</a></dd>
-}}
-
-    </dl>
-    \endhtmlonly
- */
-"""
-
-file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary()))
+SENFSCons.IndexPage(env, 'Mainpage.dox', title="HowTo's")
 
 SConscript(glob.glob("*/SConscript"))