Home | History | Annotate | Download | only in hosting
      1 #!/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: 
      5 echo \</div\> > $1/div.tmp
      6 for f in `find $1 -name '*-source.html' -print`
      7 do
      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
     13 done
     14 rm $1/*.tmp
     15