X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FExt%2FSConscript;h=ccfed8f284bc30213ffb8f18bee0475ca35b4c2c;hb=ad287a6e1241649e73188edf5b8902e4e65f615d;hp=90dcbc4c86b07ddcf0cf32cbf9ef1081e24cc033;hpb=dabe8f95330ac77629aabcb710627af474b440de;p=senf.git
diff --git a/senf/Ext/SConscript b/senf/Ext/SConscript
index 90dcbc4..ccfed8f 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))
-
-
-MAINPAGE="""
-/** \mainpage Extensions
-
- This folder contains additional SENF extensions which are built
- into the senf libarary but are not part of senf proper.
-
- \htmlonly
-
-
-{{ for name, title in EXTENSIONS:
- - ${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.
+
+ \htmlonly
+
+
+{{ for name, title in EXTENSIONS:
+ - ${name}
- ${title}
}}
-
- \endhtmlonly
- */
-"""
+
+ \endhtmlonly
+ */
+ """
-file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary()))
+ file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary()))
-SConscript(sconscripts)
+ SConscript(sconscripts)
-env.Clean('all','Mainpage.dox')
-env.Clean('all_docs','Mainpage.dox')
+ env.Clean('all','Mainpage.dox')
+ env.Clean('all_docs','Mainpage.dox')
-SENFSCons.Doxygen(env)
+ SENFSCons.Doxygen(env)