(make the folders first)
me@dev ~ $ BINARY=midori for FILES in $(readelf -d ~/GIT/buildroot-2012/output/target/usr/bin/"$BINARY" |awk -F\[ ' /Shared library/ {print $2}' | cut -d"]" -f1); do scp ~/GIT/buildroot-2012/output/target/usr/lib/"$FILES" root@kt:/mnt/us/extensions/"$BINARY"/lib/; done
For when I am bored of figuring out what libs to move across. and unrolling the symlinks.
This won't catch them all but does a decent chunk. Happy to get feedback on improving this.
Last edited by twobob; 03-14-2013 at 03:06 PM.
|