#!/bin/bash LIB=$1 DEP=$2 [ "$2" ] || exit 1 echo "Finding all packages with binary dependencies on $LIB, but without a valid #DEP:$DEP statement in the SlackBuild." ./findrevbindeps "$LIB" |cut -f1 -d:|sort|uniq| sed 's@.*/@@' | sed 's/.pkg$//' | while read PKG; do if BUILD=`./findbuild $PKG`.SlackBuild; then #echo "$PKG: checking if $BUILD has #DEP:$DEP" if ! grep "^#DEP:$DEP" $BUILD >/dev/null; then echo "NO_DEP $BUILD" fi fi done