2010-04-05 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / docs / produce-lists
blob90f939432b10eb74636dbc2454bfe227651587be
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/../mono/io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known | sort > $dir/wapi
36 nm $dir/../mono/mini/.libs/libmono.a | clean_nm | ignore_known | ignore_wapi | grep -v ^ves_icall | grep -v ^mono_arch_ | sort > $dir/public-api