xulrunner/find-external-requires.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Sat, 03 May 2014 10:14:44 +0200
changeset 733 b2202fea7983
parent 325 f5966ab369fb
permissions -rw-r--r--
manual forward merge from 29 and 30 branches

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