Files
android_development/pdk/hosting/edoxfix.sh
Mike Ritter fd46c2cf5a AI 146546: am: CL 146204 am: CL 146203 New .jd files, modified Pdk.mk to fix doxygen </div> bug on line 25 of *-source.html files, removed extraneous SDK examples.
Original author: mritter
  Merged from: //branches/cupcake/...
  Original author: android-build

Automated import of CL 146546
2009-04-18 15:46:37 -07:00

15 lines
526 B
Bash
Executable File

#!/bin/bash
# $1 = output directory of generated docs: out/target/product/generic/obj/PACKAGING/pdkdocs_intermediates/generatedDocs/html
# fix a bug in doxygen 1.5.6 and higher...
# insert the line: '</div>\n' after line 25 in each generated source file:
echo \</div\> > $1/div.tmp
for f in `find $1 -name '*-source.html' -print`
do
head -n 25 $f > $f.head.tmp
let count=$(wc -l $f | cut -d\ -f 1 )
count=$(($count-25))
tail -n $count $f > $f.tail.tmp
cat $f.head.tmp $1/div.tmp $f.tail.tmp > $f
done
rm $1/*.tmp