MozillaFirefox/find-external-requires.sh
author Petr Cerny <pcerny@suse.com>
Sat, 18 Feb 2012 22:22:24 +0100
changeset 392 3992082d6d62
parent 279 eb9e33036fb4
permissions -rw-r--r--
better plugin directory resolution (bnc#747320)

#!/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