author | Wolfgang Rosenauer <wr@rosenauer.org> |
Mon, 25 Oct 2010 13:06:20 +0200 | |
changeset 185 | c03de6258fea |
parent 99 | e7df24b73a40 |
permissions | -rw-r--r-- |
4
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
1 |
#!/bin/sh |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
2 |
|
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
3 |
# Finds requirements provided outside of the current file set |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
4 |
|
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
5 |
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
6 |
|
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
7 |
provides=`echo "$filelist" | /usr/lib/rpm/find-provides` |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
8 |
|
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
9 |
{ |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
10 |
for f in $filelist ; do |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
11 |
echo $f | /usr/lib/rpm/find-requires | while read req ; do |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
12 |
found=0 |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
13 |
for p in $provides ; do |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
14 |
if [ "$req" = "$p" ]; then |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
15 |
found=1 |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
16 |
fi |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
17 |
done |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
18 |
if [ "$found" = "0" ]; then |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
19 |
echo $req |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
20 |
fi |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
21 |
done |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
22 |
done |
523b1d92948c
Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
23 |
} | sort -u |