aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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" ] && \