mozilla-xulrunner192/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Tue, 20 Dec 2011 21:22:26 +0100
branchmozilla-1.9.2
changeset 365 243bca1c121b
parent 278 436c76ab5f25
permissions -rw-r--r--
changelogs

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