MozillaFirefox/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 17 Aug 2011 23:18:44 +0200
branchmozilla-1.9.2
changeset 304 162e98678b05
parent 278 436c76ab5f25
permissions -rw-r--r--
changelog update with security information

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