HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / lib / rpm /

Server Ip : 104.21.78.54




Filename/lib/rpm/mono-find-provides
Size1.08 kb
Permissionrwxr-xr-x
Owner
Create time08-Dec-2022 22:35
Last modified24-Nov-2021 09:47
Last accessed24-Nov-2021 09:47
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/bash
#
# mono-find-provides
#
# Authors:
# Ben Maurer ([email protected])
#
# (C) 2005 Novell (http://www.novell.com)
#
# Args: builddir buildroot libdir

IFS=$'\n'
filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/'))
monolist=($(printf "%s\n" "${filelist[@]}" | grep -E "\\.(exe|dll)\$"))

# If monodis is in the package being installed, use that one
# This is to support building mono
build_bindir="$2/usr/bin"
build_libdir="$2$3"

if [ -x $build_bindir/monodis ]; then
monodis="$build_bindir/monodis"
export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
elif [ -x /usr/bin/monodis ]; then
monodis="/usr/bin/monodis"
else
exit 0;
fi

export MONO_SHARED_DIR=$1

for i in "${monolist[@]}"; do
($monodis --assembly $i | awk '
BEGIN { LIBNAME=""; VERSION=""; }
/^Version:/ { VERSION=$2 }
/^Name:/ { LIBNAME=$2 }
END {
if (VERSION && LIBNAME)
print "mono(" LIBNAME ") = " VERSION
}
') 2>/dev/null
done