]>
Commit | Line | Data |
---|---|---|
2367a352 ER |
1 | #!/bin/sh |
2 | # This script reads filenames from STDIN and outputs any relevant provides | |
3 | # information that needs to be included in the package. | |
4 | # | |
5 | # Based on rpm-4.4.2/scripts/find-req.pl | |
6 | # Authors: Elan Ruusamäe <glen@pld-linux.org> | |
7 | ||
8 | export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" | |
9 | ||
2367a352 ER |
10 | for file in $(cat -); do |
11 | case $file in | |
12 | *.jar) | |
13 | unzip -p $file | javadeps --provides --rpmformat --keywords --starprov - | |
14 | ;; | |
15 | *.class) | |
16 | javadeps --provides --rpmformat --keywords --starprov $file | |
17 | ;; | |
18 | esac | |
1ae8d1e3 | 19 | done | sort -u |