• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:
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
15