aboutsummaryrefslogtreecommitdiffstats
path: root/devel.prov
diff options
context:
space:
mode:
Diffstat (limited to 'devel.prov')
-rw-r--r--devel.prov16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel.prov b/devel.prov
new file mode 100644
index 0000000..2598585
--- /dev/null
+++ b/devel.prov
@@ -0,0 +1,16 @@
+#/bin/sh
+# --- .so files.
+#
+filelist=
+while read instfile ; do
+ filelist="$filelist $instfile"
+done
+
+for i in `echo $filelist | tr '[:blank:]' "\n" | egrep '(/usr)?/lib(|64)(/gcc(-lib)?/.+)?/[^/]+\.so$'`; do
+ objd=`objdump -p ${i} | grep SONAME`
+ [ -h ${i} -a -n "${objd}" ] && \
+ lib64=`if file -L $i 2>/dev/null | grep "ELF 64-bit" >/dev/null; then echo "(64bit)"; fi` && \
+ echo ${objd} | perl -p -e "s/.*SONAME\s+(\S+)\.so.*/devel(\1$lib64)/g"
+done | sort -u
+
+