From e6e28c55e3f2bd542b3fb9d4934c72b535c3f0d8 Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Fri, 5 Jul 2013 11:11:59 +0000 Subject: - Add auto requires for osgi() mvn() --- find-requires.in | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'find-requires.in') diff --git a/find-requires.in b/find-requires.in index 1e76523..fe7f8da 100755 --- a/find-requires.in +++ b/find-requires.in @@ -50,6 +50,9 @@ liblist=`echo "$filelist" | egrep -v "/usr/lib(64)?/gcj/" | xargs -r file | \ ocamllist=`echo "$filelist" | xargs -r file | \ grep ":.*Objective caml interface file" | cut -d : -f1` phplist=`echo "$filelist" | grep -v /usr/doc | grep -v /usr/share/doc | egrep "\.php$"` +mavenlist=$(echo "$filelist" |egrep '/usr/share/maven-fragments/*') +osgilist=$(echo "$filelist" |egrep "^(.*\.jar|((/usr/lib(64)|/usr/share).*/MANIFEST.MF))") +javadoclist=$(echo "$filelist" |egrep '/usr/share/javadoc/*') interplist= perllist= @@ -326,5 +329,29 @@ echo $filelist | tr '[:blank:]' '\n' | /usr/bin/haskell-find-requires \ && test ${PIPESTATUS[2]} -ne 0 && echo 'error: /usr/bin/haskell-find-requires failed' >&2 && exit 1 fi +# --- osgi requires +if [ -x @RPMLIBDIR@/osgi.req ];then + if [ ! -z "$osgilist" ]; then + echo "$osgilist" | tr '[:blank:]' '\n' | @RPMLIBDIR@/osgi.req \ + && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMLIBDIR@/osgi.req failed' >&2 && exit 1 + fi +fi + +# +# --- maven requires +if [ -x @RPMLIBDIR@/maven.req ];then + if [ ! -z "$mavenlist" ]; then + echo "$mavenlist" | tr '[:blank:]' '\n' | @RPMLIBDIR@/maven.req \ + && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMLIBDIR@/maven.req failed' >&2 && exit 1 + fi +fi + +# --- javadoc requires +if [ -x @RPMLIBDIR@/javadoc.req ];then + if [ ! -z "$javadoclist" ]; then + echo "$javadoclist" | tr '[:blank:]' '\n' | @RPMLIBDIR@/javadoc.req \ + && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMLIBDIR@/javadoc.req failed' >&2 && exit 1 + fi +fi exit 0 -- cgit v1.2.1