summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD.M.D. Ljungmark <spider@gentoo.org>2002-04-17 10:15:47 +0000
committerD.M.D. Ljungmark <spider@gentoo.org>2002-04-17 10:15:47 +0000
commit93c5f6a3268540b9bc800e362a3360208b7c4635 (patch)
tree36bede5595a4c644e0b13bfb874125b57ece4ea5 /media-libs/libpng/files
parentMore mem. allocation fixes (diff)
downloadhistorical-93c5f6a3268540b9bc800e362a3360208b7c4635.tar.gz
historical-93c5f6a3268540b9bc800e362a3360208b7c4635.tar.bz2
historical-93c5f6a3268540b9bc800e362a3360208b7c4635.zip
updated scripts that look for qpkg in both /usr/bin and /usr/sbin
Diffstat (limited to 'media-libs/libpng/files')
-rw-r--r--media-libs/libpng/files/libpng-update-bins.sh15
-rw-r--r--media-libs/libpng/files/libpng-update-libs.sh15
2 files changed, 24 insertions, 6 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
diff --git a/media-libs/libpng/files/libpng-update-libs.sh b/media-libs/libpng/files/libpng-update-libs.sh
index d3be235a2b7e..52f0b8e80fb0 100644
--- a/media-libs/libpng/files/libpng-update-libs.sh
+++ b/media-libs/libpng/files/libpng-update-libs.sh
@@ -1,13 +1,22 @@
#!/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 libraries. do not be alarmed of error messages"
find /usr/lib -type f -perm +u+x | while read LIB; do
- ldd "${LIB}" | grep "libpng.so.2" && /usr/sbin/qpkg -nc -f "${LIB}" >>/tmp/pngstuff.libs
+ ldd "${LIB}" | grep "libpng.so.2" && ${QPKG} -nc -f "${LIB}" >>/tmp/pngstuff.libs
done
cat /tmp/pngstuff.libs |sort | uniq | sed 's:\(.*/.*\)-[0-9]\+.*:\1:g' >/tmp/pngstuff.libs.rebuild
echo "You will now need to rebuild the following packages"