xulrunner/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Fri, 25 May 2012 09:24:43 +0200
branchfirefox13
changeset 453 5831e2da2c6e
parent 325 f5966ab369fb
permissions -rw-r--r--
cleanup after grafting

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