summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libpng/files/libpng-update-bins.sh')
-rw-r--r--media-libs/libpng/files/libpng-update-bins.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/media-libs/libpng/files/libpng-update-bins.sh b/media-libs/libpng/files/libpng-update-bins.sh
index 80422f3c365f..05a91a28fdeb 100644
--- a/media-libs/libpng/files/libpng-update-bins.sh
+++ b/media-libs/libpng/files/libpng-update-bins.sh
@@ -1,12 +1,21 @@
#!/bin/bash
if [ ! -f /usr/sbin/qpkg ]; then
- echo "qpkg not found, will emerge gentoolkit"
- emerge gentoolkit
+ if [ ! -f /usr/bin/qpkg ]; then
+ echo "qpkg not found, will emerge gentoolkit"
+ emerge gentoolkit
+ fi
fi
+if [ -f /usr/sbin/qpkg ]; then
+ QPKG=/usr/sbin/qpkg
+fi
+if [ -f /usr/bin/qpkg ]; then
+ QPKG=/usr/bin/qpkg
+fi
+
rm -f /tmp/pngstuff.*
echo "scanning /usr do not be alarmed of error messages"
find /usr -type f -perm +u+x | while read FOO; do
- ldd "${FOO}" | grep libpng.so.2 && /usr/sbin/qpkg -nc -f ${FOO} >>/tmp/pngstuff.bins
+ ldd "${FOO}" | grep libpng.so.2 && ${QPKG} -nc -f ${FOO} >>/tmp/pngstuff.bins
done