aboutsummaryrefslogtreecommitdiffstats
path: root/find-requires.in
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2005-05-13 09:23:15 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2005-05-13 09:23:15 +0000
commit82b49279d24e7ea54fac495bcf391b4ff35b7c20 (patch)
tree774e67c9b0ed9b317dabecf822947d5a29142c97 /find-requires.in
parentd5f2dbf98b43d7286f518cf6f63aa9d4b4e5a898 (diff)
downloadrpm-setup-82b49279d24e7ea54fac495bcf391b4ff35b7c20.tar
rpm-setup-82b49279d24e7ea54fac495bcf391b4ff35b7c20.tar.gz
rpm-setup-82b49279d24e7ea54fac495bcf391b4ff35b7c20.tar.bz2
rpm-setup-82b49279d24e7ea54fac495bcf391b4ff35b7c20.tar.xz
rpm-setup-82b49279d24e7ea54fac495bcf391b4ff35b7c20.zip
- add experimantal ocaml requires
Diffstat (limited to 'find-requires.in')
-rwxr-xr-xfind-requires.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/find-requires.in b/find-requires.in
index 794e354..ca09eaa 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -46,6 +46,8 @@ scriptlist=`echo "$filelist" | grep -v /usr/doc | grep -v /usr/share/doc | xargs
egrep ":.* (commands|script) " | cut -d: -f1`
liblist=`echo "$filelist" | xargs -r file | \
grep ":.*shared object" | cut -d : -f1`
+ocamllist=`echo "$filelist" | xargs -r file | \
+ grep ":.*Objective caml interface file" | cut -d : -f1`
interplist=
perllist=
@@ -149,6 +151,12 @@ for f in $liblist $exelist ; do
'
done | sort -u | grep -v 'libsafe|libfakeroot'
+# --- OCaml dependency
+if [ -x /usr/bin/ocamlc -a -n "$ocamllist" ]; then
+ version=`ocamlc -v | grep version | awk '{print $6}' | sed -e 's/+/./'`
+ echo "ocaml = $version"
+fi
+
#
# --- Perl modules.
[ -x @RPMVENDORDIR@/perl.req -a -n "$perllist" ] && \