From 82b49279d24e7ea54fac495bcf391b4ff35b7c20 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Fri, 13 May 2005 09:23:15 +0000 Subject: - add experimantal ocaml requires --- find-requires.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'find-requires.in') 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" ] && \ -- cgit v1.2.1