blob: f82e9125784d620a22015c5906218ba00545bce9 [file] [log] [blame]
Mike Ritterfd46c2c2009-04-18 15:46:37 -07001#!/bin/bash
2# $1 = output directory of generated docs: out/target/product/generic/obj/PACKAGING/pdkdocs_intermediates/generatedDocs/html
3# fix a bug in doxygen 1.5.6 and higher...
4# insert the line: '</div>\n' after line 25 in each generated source file:
5echo \</div\> > $1/div.tmp
6for f in `find $1 -name '*-source.html' -print`
7do
8 head -n 25 $f > $f.head.tmp
9 let count=$(wc -l $f | cut -d\ -f 1 )
10 count=$(($count-25))
11 tail -n $count $f > $f.tail.tmp
12 cat $f.head.tmp $1/div.tmp $f.tail.tmp > $f
13done
14rm $1/*.tmp