xulrunner/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Thu, 28 Apr 2016 17:08:03 +0200
branchfirefox46
changeset 909 c6717354928b
parent 325 f5966ab369fb
permissions -rw-r--r--
Firefox 46.0

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