2 # This script reads filenames from STDIN and outputs any relevant provides
3 # information that needs to be included in the package.
5 # Based on rpm-4.4.2/scripts/find-req.pl
6 # Authors: Elan Ruusamäe <glen@pld-linux.org>
8 export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
15 # Break out if there are no more args
22 # Get the first arg, and shuffle
26 # Make all options have two hyphens
27 orig_option=$option # Save original for error messages
30 -*) option=-$option ;;
47 echo "$0: Unrecognized option: \"$orig_option\"; use --help for usage." >&2
53 for file in $(cat -); do
56 unzip -p $file | javadeps --provides --rpmformat --keywords --starprov -
59 javadeps --provides --rpmformat --keywords --starprov $file
62 done | sort -u | egrep -v \'$IGNORE_DEPS\'