based on Niljues suggestion to try to improve this via ldd...
I have come up with:
THING="/mnt/us/debian/usr/games/gtkboard" (for example)
then...
ldd $THING | tail +2 | awk '{a[NR%4]=$1}NR>1{print a[(NR-1)%4]}'
(this skips the /usr/lib/libenvload.so and /lib/ld-linux.so.3 results as well as only printing the library names we are interested in.
I'll look to weld that into the exporter to give better all-round results.
EDIT: so in-context this would be:
#OLD THING
#FILES=$(readelf -d ${@} |awk -F\[ ' /Shared library/ {print $2}' | cut -d"]" -f1)
#NEW THING
FILES=$(ldd ${@} | tail +2 | awk '{a[NR%4]=$1}NR>1{print a[(NR-1)%4]}')
I will look to ALSO: still find NON-native equivalents of kindle supported libs
(may take longer... but will save some time in the longrun on known trouble makers like libgthread-2.0.so.0 etc..)
that'll probably make it into the next update.
Last edited by twobob; 10-13-2013 at 03:25 PM.
|