xulrunner/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 18 Jan 2017 22:06:23 +0100
changeset 934 b61e849fe451
parent 325 f5966ab369fb
permissions -rw-r--r--
merge branch changes into default

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