From: g0dil Date: Tue, 24 Apr 2007 12:45:53 +0000 (+0000) Subject: Autogenerate search.php from the html templates X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=47be4c5261340d3e2ea208bb0b2d96fa256d829a;hp=f0dcb517837b27f0cded68a4f8a3cf5740ba840e;p=senf.git Autogenerate search.php from the html templates autogenerate list of search indices replace @TOPDIR@ in html templates with relative path to project root git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@231 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/SConstruct b/SConstruct index 807596a..5ce43a2 100644 --- a/SConstruct +++ b/SConstruct @@ -38,12 +38,10 @@ SENFSCons.StandardTargets(env) SENFSCons.GlobalTargets(env) SENFSCons.Doxygen(env) -#, extra_sources = [ -# 'Examples/Sniffer/Sniffer.cc', -#]) SENFSCons.DoxyXRef(env, HTML_HEADER = '#/doclib/doxy-header-overview.html', HTML_FOOTER = '#/doclib/doxy-footer.html') +SENFSCons.DoxySearch(env) # Create Doxyfile.local if not cleaning and the file does not exist # otherwise doxygen will barf on this non-existent file diff --git a/doclib/SConscript b/doclib/SConscript new file mode 100644 index 0000000..0d93b93 --- /dev/null +++ b/doclib/SConscript @@ -0,0 +1,19 @@ +# -*- python -*- + +Import('env') +import SENFSCons + +########################################################################### + +# This is not nice .. really ... +env.Alias( + 'all_docs', + env.Command('search.php', + [ 'doxy-header-overview.html', 'doxy-footer.html', 'html-munge.xsl' ], + [ "sed -e 's/\\$$title/Search results/g' -e 's/\\$$projectname/Overview/g' ${SOURCES[0]} > ${TARGET}.tmp", + 'echo "PHPSEARCH" >> ${TARGET}.tmp', + 'cat ${SOURCES[1]} >> ${TARGET}.tmp', + 'xsltproc --nonet --html --stringparam topdir .. -o - ${SOURCES[2]} ${TARGET}.tmp 2>/dev/null' + + '| sed -e "s/PHPSEARCH//" > $TARGET', + 'rm -f ${TARGET}.tmp' ])) + diff --git a/doclib/doxy-header-overview.html b/doclib/doxy-header-overview.html index 195b602..28f3fa3 100644 --- a/doclib/doxy-header-overview.html +++ b/doclib/doxy-header-overview.html @@ -2,8 +2,8 @@ $title - - + + @@ -12,7 +12,7 @@ div.tabs ul li.$projectname a { background-color: #EDE497; }