home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / misc / src / rpm / autodeps / solaris.prov < prev    next >
Text File  |  1997-09-17  |  300b  |  12 lines

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