6 ###########################################################################
8 # This is not nice .. really ...
11 env.Command('search.php',
12 [ 'doxy-header-overview.html', 'doxy-footer.html', 'html-munge.xsl' ],
13 [ "sed -e 's/\\$$title/Search results/g' -e 's/\\$$projectname/Overview/g' ${SOURCES[0]} > ${TARGET}.tmp",
14 'echo "PHPSEARCH" >> ${TARGET}.tmp',
15 'cat ${SOURCES[1]} >> ${TARGET}.tmp',
16 'xsltproc --nonet --html --stringparam topdir .. -o - ${SOURCES[2]} ${TARGET}.tmp 2>/dev/null'
17 + '| sed -e "s/PHPSEARCH/<?php include \'search_functions.php\'; ?><?php search(); ?>/" > $TARGET',
18 'rm -f ${TARGET}.tmp' ]))