Created
July 29, 2016 23:01
-
-
Save abrarShariar/1cc640d119c7db39b626cbc7129e6a6f to your computer and use it in GitHub Desktop.
shell script to grab the dependencies of binary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #grab and copy dependencies | |
| #get file path | |
| ldd ./YouTube-Player | cut -f2 -d '>' | cut -f1 -d '(' > test | |
| while read -r line || [[ -n "$line" ]]; | |
| do | |
| if [ -f $line ] | |
| then | |
| cp $line ./lib/ | |
| fi | |
| done < "test" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment