Welcome to mirror list, hosted at ThFree Co, Russian Federation.

produce-lists « docs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90f939432b10eb74636dbc2454bfe227651587be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# Produces two lists in docscripts:
#    public-api with the public API except the Wapi 
#    wapi       the public WAPI API
#

dir=`dirname $0`
add_h4()
{
	sed -e 's/^\t<h4>//' -e 's/$/<\/h4>/'
}

ignore_known()
{
	egrep -v -f $dir/ignore
}

clean_nm ()
{
	grep ' T ' | sed 's/.* T //'
}

ignore_wapi ()
{
	grep -v _wapi | fgrep -v -f $dir/wapi
}

if grep ^$ ignore >/dev/null; then
    echo The ignore file contains empty lines, which breaks this script, please remove
    echo the empty lines.
    exit 1
fi

nm  $dir/../mono/io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known | sort > $dir/wapi
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