forked from pool/mono-core
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
Index: scripts/mono-find-provides.in
|
|
===================================================================
|
|
--- scripts/mono-find-provides.in (revision 70444)
|
|
+++ scripts/mono-find-provides.in (revision 70445)
|
|
@@ -27,8 +27,11 @@
|
|
libdir=$prefix/@reloc_libdir@
|
|
bindir=$d
|
|
|
|
-[ -x $bindir/monodis ] || exit 0;
|
|
-[ -f $libdir/libmono.so ] || exit 0;
|
|
+# Bail out if monodis or libmono is missing
|
|
+if [ ! -x $bindir/monodis ] || [ ! -f $libdir/libmono.so ] ; then
|
|
+ echo "monodis missing or unusable, exiting..."
|
|
+ exit 1
|
|
+fi
|
|
|
|
|
|
# set LD_LIBRARY_PATH to ensure that libmono.so is found
|
|
Index: scripts/mono-find-requires.in
|
|
===================================================================
|
|
--- scripts/mono-find-requires.in (revision 70444)
|
|
+++ scripts/mono-find-requires.in (revision 70445)
|
|
@@ -22,8 +22,11 @@
|
|
libdir=$prefix/@reloc_libdir@
|
|
bindir=$d
|
|
|
|
-[ -x $bindir/monodis ] || exit 0;
|
|
-[ -f $libdir/libmono.so ] || exit 0;
|
|
+# Bail out if monodis or libmono is missing
|
|
+if [ ! -x $bindir/monodis ] || [ ! -f $libdir/libmono.so ] ; then
|
|
+ echo "monodis missing or unusable, exiting..."
|
|
+ exit 1
|
|
+fi
|
|
|
|
|
|
# set LD_LIBRARY_PATH to ensure that libmono.so is found
|