mozilla-xulrunner192/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Thu, 16 Feb 2012 13:59:30 +0100
branchmozilla-1.9.2
changeset 389 7ae503655cbe
parent 278 436c76ab5f25
permissions -rw-r--r--
1.9.2.27/3.6.27

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