* ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
[mono.git] / scripts / mono-find-requires.in
index 446d9fcfd2da452347b4bf3c8a7340dff66bb6e9..5c9edddf391a71f0ab36d68eeb9dfc65cbd015db 100644 (file)
@@ -22,8 +22,11 @@ exec_prefix=$d/..
 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
@@ -38,12 +41,16 @@ REQUIRES=$(
                                sub(/Version=/, "", $2);
                                VERSION=$2
                        }
-       
+
                        (START==1) && /^\tName=/ {
                                sub(/Name=/, "", $1);
                                LIBNAME=$1
-       
-                               print "mono(" LIBNAME ") = " VERSION
+                               # Allow rpm deps to be resolved for 1.0 profile version
+                               if (VERSION=="1.0.3300.0")
+                                       OP=">="
+                               else
+                                       OP="="
+                               print "mono(" LIBNAME ") " OP " " VERSION
                                START=0
                        }
                    ') 2> /dev/null
@@ -80,7 +87,7 @@ UNIQ=$(echo "$PROVIDES
 $REQUIRES" | sort | uniq -u)
 
 #
-# Of those, only chose the ones that are in REQUIRES
+# Of those, only choose the ones that are in REQUIRES
 #
 echo "$UNIQ
 $REQUIRES" | sort | uniq -d