2010-01-13 Mark Probst <mark.probst@gmail.com>
[mono-project/dkf.git] / docs / produce-lists
blob43770131acf541e615789cbbb2cfb781864cd336
1 #!/bin/sh
3 # Produces two lists in docscripts:
4 # public-api with the public API except the Wapi
5 # wapi the public WAPI API
8 dir=`dirname $0`
9 add_h4()
11 sed -e 's/^\t<h4>//' -e 's/$/<\/h4>/'
14 ignore_known()
16 egrep -v -f $dir/ignore
19 clean_nm ()
21 grep ' T ' | sed 's/.* T //'
24 ignore_wapi ()
26 grep -v _wapi | fgrep -v -f $dir/wapi
29 if grep ^$ ignore >/dev/null; then
30 echo The ignore file contains empty lines, which breaks this script, please remove
31 echo the empty lines.
32 exit 1
35 nm $dir/../io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known > $dir/wapi
36 nm $dir/../*/.libs/*.o | clean_nm | ignore_known | ignore_wapi | grep -v ^ves_icall | grep -v ^mono_arch_ > $dir/public-api