#!/bin/sh # This script reads filenames from STDIN and outputs any relevant provides # information that needs to be included in the package. filelist=`grep "lib.*\\.so" | xargs file -L 2>/dev/null | grep "ELF.*dynamic lib" | cut -d: -f1 | sort -u` for I in $filelist; do basename $I done