2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / scripts / mono-find-provides.in
index 7f677202006328bbaf90c3e5f58c551225fd48a2..ba46722ae679b29999d1bacbb74ce52aea687522 100644 (file)
@@ -35,6 +35,14 @@ for i in "${monolist[@]}"; do
                 /^Version:/ { VERSION=$2 }
                 /^Name:/    { LIBNAME=$2 }
                 END {
+                       if (LIBNAME ~ /^policy/) {
+                               cnt = split(LIBNAME, toks, ".")
+                               VERSION=toks[2] "." toks[3] ".0.0"
+                               LIBNAME=""
+                               for (i=4; i<= cnt; i++)
+                                       LIBNAME = (LIBNAME toks[i] ".")
+                               LIBNAME=substr(LIBNAME, 1, length(LIBNAME)-1)
+                       }
                         if (VERSION && LIBNAME)
                                 print "mono(" LIBNAME ") = " VERSION
                 }