projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New test.
[mono.git]
/
scripts
/
mono-find-requires.in
diff --git
a/scripts/mono-find-requires.in
b/scripts/mono-find-requires.in
index b602afd63391975c7764e53b39d77c80807508a0..c2b8832f95674a575135d95cc768ae4528ebcacf 100644
(file)
--- a/
scripts/mono-find-requires.in
+++ b/
scripts/mono-find-requires.in
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
#
# mono-find-requires
#
#
# mono-find-requires
#
@@
-12,12
+12,15
@@
IFS=$'\n'
filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/'))
monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$"))
filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/'))
monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$"))
+a=`which "$0"`
+d=`dirname "$a"`
+
# Set the prefix, unless it is overriden (used when building mono rpms)
# Set the prefix, unless it is overriden (used when building mono rpms)
-: ${prefix=
@prefix@
}
+: ${prefix=
$d/..
}
-exec_prefix=
@exec_prefix@
-libdir=
@
libdir@
-bindir=
@bindir@
+exec_prefix=
$d/..
+libdir=
$prefix/@reloc_
libdir@
+bindir=
$d
[ -x $bindir/monodis ] || exit 0;
[ -f $libdir/libmono.so ] || exit 0;
[ -x $bindir/monodis ] || exit 0;
[ -f $libdir/libmono.so ] || exit 0;
@@
-35,12
+38,16
@@
REQUIRES=$(
sub(/Version=/, "", $2);
VERSION=$2
}
sub(/Version=/, "", $2);
VERSION=$2
}
-
+
(START==1) && /^\tName=/ {
sub(/Name=/, "", $1);
LIBNAME=$1
(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
START=0
}
') 2> /dev/null
@@
-77,7
+84,7
@@
UNIQ=$(echo "$PROVIDES
$REQUIRES" | sort | uniq -u)
#
$REQUIRES" | sort | uniq -u)
#
-# Of those, only chose the ones that are in REQUIRES
+# Of those, only cho
o
se the ones that are in REQUIRES
#
echo "$UNIQ
$REQUIRES" | sort | uniq -d
#
echo "$UNIQ
$REQUIRES" | sort | uniq -d