View Single Post
Old 10-13-2013, 08:06 PM   #24
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Lightbulb

hmmm... this looks a bit better as an output.

This version of the script DOES make an assumption..
debian is mounted as/at /mnt/us/debian

if it isn't then you have to amend that variable..

but it runs a bazzilion times faster than the previous version... (which still isn't fast but... yeah)
and should try to find all sub-dependencies.

No doubt as I learn more I will realise there are improvements that could be made...

OUTPUT:

[root@kindle bin]# filegrabber /mnt/us/debian/usr/games/pente
Code:
------------------------------------------------
BUILD LIST OF DEPENDENT LIBS AND THEIR LOCATIONS
------------------------------------------------
FINDING CANDIDATE FOR: libX11.so.6 LOCATED AT: /mnt/us/debian/usr/lib/arm-linux-gnueabi/libX11.so.6
copied /mnt/us/debian/usr/lib/arm-linux-gnueabi/libX11.so.6 to /mnt/us/export/pente/lib/libX11.so.6
FINDING CANDIDATE FOR: libncurses.so.5 LOCATED AT: /mnt/us/debian/lib/arm-linux-gnueabi/libncurses.so.5
copied /mnt/us/debian/lib/arm-linux-gnueabi/libncurses.so.5 to /mnt/us/export/pente/lib/libncurses.so.5
FINDING CANDIDATE FOR: libnsl.so.1 LOCATED AT: /mnt/us/debian/lib/arm-linux-gnueabi/libnsl.so.1
copied /mnt/us/debian/lib/arm-linux-gnueabi/libnsl.so.1 to /mnt/us/export/pente/lib/libnsl.so.1
FINDING CANDIDATE FOR: libxcb.so.1 LOCATED AT: /mnt/us/debian/usr/lib/arm-linux-gnueabi/libxcb.so.1
copied /mnt/us/debian/usr/lib/arm-linux-gnueabi/libxcb.so.1 to /mnt/us/export/pente/lib/libxcb.so.1
FINDING CANDIDATE FOR: libXau.so.6 LOCATED AT: /mnt/us/debian/usr/lib/arm-linux-gnueabi/libXau.so.6
copied /mnt/us/debian/usr/lib/arm-linux-gnueabi/libXau.so.6 to /mnt/us/export/pente/lib/libXau.so.6
FINDING CANDIDATE FOR: libXdmcp.so.6 LOCATED AT: /mnt/us/debian/usr/lib/arm-linux-gnueabi/libXdmcp.so.6
copied /mnt/us/debian/usr/lib/arm-linux-gnueabi/libXdmcp.so.6 to /mnt/us/export/pente/lib/libXdmcp.so.6
filelist = 
libtinfo.so.5
copying /mnt/us/debian/usr/games/pente to /mnt/us/export/pente/bin/pente
Searching 774 user libs, 84 libs, 13 extended dirs

libtinfo.so.5
non native result /mnt/us/debian/lib/arm-linux-gnueabi/libtinfo.so.5
Export complete at /mnt/us/export/pente ensure you run pente like: cd /mnt/us/export/pente/bin; LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./pente


I'll up it to the top post.
twobob is offline   Reply With Quote