diff options
author | D.M.D. Ljungmark <spider@gentoo.org> | 2002-04-13 00:48:03 +0000 |
---|---|---|
committer | D.M.D. Ljungmark <spider@gentoo.org> | 2002-04-13 00:48:03 +0000 |
commit | a20a95a49f69d3b986f7321d2b240019142c1216 (patch) | |
tree | fa6be33cc8235bd9da9820d932ec3c3d8d1a15d1 /media-libs/libpng/files | |
parent | oops on virtual/xfree (diff) | |
download | gentoo-2-a20a95a49f69d3b986f7321d2b240019142c1216.tar.gz gentoo-2-a20a95a49f69d3b986f7321d2b240019142c1216.tar.bz2 gentoo-2-a20a95a49f69d3b986f7321d2b240019142c1216.zip |
split scanning script to bins and libs
Diffstat (limited to 'media-libs/libpng/files')
-rw-r--r-- | media-libs/libpng/files/libpng-update-bins.sh | 21 | ||||
-rw-r--r-- | media-libs/libpng/files/libpng-update-libs.sh | 22 |
2 files changed, 43 insertions, 0 deletions
diff --git a/media-libs/libpng/files/libpng-update-bins.sh b/media-libs/libpng/files/libpng-update-bins.sh new file mode 100644 index 000000000000..80422f3c365f --- /dev/null +++ b/media-libs/libpng/files/libpng-update-bins.sh @@ -0,0 +1,21 @@ +#!/bin/bash +if [ ! -f /usr/sbin/qpkg ]; then + echo "qpkg not found, will emerge gentoolkit" + emerge gentoolkit +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 +done + + +cat /tmp/pngstuff.bins |sort | uniq | sed 's:\(.*/.*\)-[0-9]\+.*:\1:g' >/tmp/pngstuff.bins.rebuild +echo "You will now need to rebuild the following packages" +echo "-----------" +cat /tmp/pngstuff.bins.rebuild +echo "-----------" +# cat /tmp/pngstuff.bins.rebuild | while read PACK; do emerge ${PACK}; done +echo "done, deleting tempfiles" +rm -f /tmp/pngstuff.* + diff --git a/media-libs/libpng/files/libpng-update-libs.sh b/media-libs/libpng/files/libpng-update-libs.sh new file mode 100644 index 000000000000..d3be235a2b7e --- /dev/null +++ b/media-libs/libpng/files/libpng-update-libs.sh @@ -0,0 +1,22 @@ +#!/bin/bash +if [ ! -f /usr/sbin/qpkg ]; then + echo "qpkg not found, will emerge gentoolkit" + emerge gentoolkit +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 +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" +echo "------------" +cat /tmp/pngstuff.libs.rebuild +echo "------------" +# cat /tmp/pngstuff.libs.rebuild | while read PACK; do emerge ${PACK}; done +echo "--- Done with libraries ---" + + +rm -f /tmp/pngstuff.* + |