Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=eb940d4d9c2ca12870005779e71a25ad6deb9474
commit eb940d4d9c2ca12870005779e71a25ad6deb9474 Author: James Buren <[email protected]> Date: Tue Jul 24 15:28:20 2012 -0500 chkabi: add tool to assist with checking packages for ABI breakage diff --git a/tools/chkabi b/tools/chkabi new file mode 100644 index 0000000..18172a6 --- /dev/null +++ b/tools/chkabi @@ -0,0 +1,26 @@ +#!/bin/sh + +if [ -z "$1" -o -z "$2" ]; then + echo "Usage: $0 <extended regular expression> <FPMs>" + exit 1 +fi + +ERE="$1" +shift 1 + +DIR="$(mktemp -td)" +cd $DIR + +for i in $*; do + tar -xf $i + for j in $(find -type f); do + if file $j | grep -q 'ELF'; then + if readelf -d $j | grep -qE "$ERE"; then + echo "$i -> $j is a match" + fi + fi + done + rm -rf * .* 2> /dev/null +done + +rm -rf $DIR _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
