xulrunner/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 05 Oct 2011 15:58:57 +0200
branchfirefox7
changeset 339 db8b891eeb1e
parent 325 f5966ab369fb
permissions -rw-r--r--
locale should always match the system one in a package environment

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