File find-external-requires.sh of Package MozillaFirefox.7685

#!/bin/sh
# Finds requirements provided outside of the current file set
MAXJOBS=4
MAXFILES=64

filelist=$( sed "s/[]['\"*?{}]/\\\\\&/g" )

provides=$( echo "$filelist" \
    | xargs -P $MAXJOBS -L $MAXFILES \
        /bin/sh -c 'printf "%s\n" "$@" | /usr/lib/rpm/find-provides' -- \
    | sort -u )

echo "$filelist" \
    | xargs -P $MAXJOBS -L $MAXFILES \
        /bin/sh -c 'printf "%s\n" "$@" | /usr/lib/rpm/find-requires' -- \
    | grep -F -v "$provides" \
    | sort -u
openSUSE Build Service is sponsored by