MozillaFirefox/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 15 Jun 2016 09:53:47 +0200
branchfirefox47
changeset 920 4e5807284ef0
parent 279 eb9e33036fb4
permissions -rw-r--r--
https://bugzilla.opensuse.org/show_bug.cgi?id=984637

#!/bin/sh
# Finds requirements provided outside of the current file set

filelist=$( sed "s/[]['\"*?{}]/\\\\\&/g" )
provides=$( echo "$filelist" | /usr/lib/rpm/find-provides )
echo "$filelist" \
    | /usr/lib/rpm/find-requires \
    | grep -F -v "$provides" \
    | sort -u