6 # Ben Maurer (bmaurer@ximian.com)
8 # (C) 2005 Novell (http://www.novell.com)
10 # Args: builddir buildroot libdir
13 filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/'))
14 monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$"))
16 # If monodis is in the package being installed, use that one
17 # This is to support building mono
18 build_bindir="$2/usr/bin"
21 if [ -x $build_bindir/monodis ]; then
22 monodis="$build_bindir/monodis"
23 export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
24 elif [ -x /usr/bin/monodis ]; then
25 monodis="/usr/bin/monodis"
30 export MONO_SHARED_DIR=$1
32 for i in "${monolist[@]}"; do
33 ($monodis --assembly $i | awk '
34 BEGIN { LIBNAME=""; VERSION=""; }
35 /^Version:/ { VERSION=$2 }
36 /^Name:/ { LIBNAME=$2 }
38 if (VERSION && LIBNAME)
39 print "mono(" LIBNAME ") = " VERSION