Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kestner <mkestner@gmail.com>2005-12-01 17:05:30 +0300
committerMike Kestner <mkestner@gmail.com>2005-12-01 17:05:30 +0300
commit5c882379b3784e95999c614691f9d7807ddde5d5 (patch)
tree736074dbc793fbdb40b6717301ab56aac426a044 /scripts
parent55b9e6ded30cb5a238b3364aef4f09e72ce1c252 (diff)
2005-12-01 Mike Kestner <mkestner@novell.com>
* scripts/mono-find-provides.in: support policy assemblies. svn path=/trunk/mono/; revision=53764
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mono-find-provides.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/mono-find-provides.in b/scripts/mono-find-provides.in
index 7f677202006..ba46722ae67 100644
--- a/scripts/mono-find-provides.in
+++ b/scripts/mono-find-provides.in
@@ -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
}