diff options
author | D.M.D. Ljungmark <spider@gentoo.org> | 2002-04-17 10:15:47 +0000 |
---|---|---|
committer | D.M.D. Ljungmark <spider@gentoo.org> | 2002-04-17 10:15:47 +0000 |
commit | 0362ecb76b316d0c291f4bbb13344cd105534132 (patch) | |
tree | e48a36f902895bb22e4820e0b26dd33be7a77c3a /media-libs/libpng/files | |
parent | More mem. allocation fixes (diff) | |
download | gentoo-2-0362ecb76b316d0c291f4bbb13344cd105534132.tar.gz gentoo-2-0362ecb76b316d0c291f4bbb13344cd105534132.tar.bz2 gentoo-2-0362ecb76b316d0c291f4bbb13344cd105534132.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.sh | 15 | ||||
-rw-r--r-- | media-libs/libpng/files/libpng-update-libs.sh | 15 |
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" |