summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD.M.D. Ljungmark <spider@gentoo.org>2002-04-12 22:08:52 +0000
committerD.M.D. Ljungmark <spider@gentoo.org>2002-04-12 22:08:52 +0000
commitf9cef127e0da19b30795a7c51e7972a5599135e4 (patch)
tree1a58f64c52a787039f91e4c834681a795542feeb /media-libs/libpng/files
parentlibpng update (diff)
downloadgentoo-2-f9cef127e0da19b30795a7c51e7972a5599135e4.tar.gz
gentoo-2-f9cef127e0da19b30795a7c51e7972a5599135e4.tar.bz2
gentoo-2-f9cef127e0da19b30795a7c51e7972a5599135e4.zip
libpng-update is a cute script to automate updates of png dependant binaries
Diffstat (limited to 'media-libs/libpng/files')
-rw-r--r--media-libs/libpng/files/libpng-update.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/media-libs/libpng/files/libpng-update.sh b/media-libs/libpng/files/libpng-update.sh
new file mode 100644
index 000000000000..e501965fd8d0
--- /dev/null
+++ b/media-libs/libpng/files/libpng-update.sh
@@ -0,0 +1,35 @@
+#!/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 | 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 ---"
+
+
+echo "scanning /usr do not be alarmed of error messages"
+find /usr -type f| 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.*
+