diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-30 00:42:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-30 02:56:16 +0300 |
commit | 363c4028f82141bf25f774d4e09b5bc9e52e56e1 (patch) | |
tree | 085130ca96f885e6ccd590bf3d473e4b27a8f39e /tools | |
parent | 44020292c681b0583209d63706e8b26b27f63924 (diff) | |
download | manaverse-363c4028f82141bf25f774d4e09b5bc9e52e56e1.tar.gz manaverse-363c4028f82141bf25f774d4e09b5bc9e52e56e1.tar.bz2 manaverse-363c4028f82141bf25f774d4e09b5bc9e52e56e1.tar.xz manaverse-363c4028f82141bf25f774d4e09b5bc9e52e56e1.zip |
Add check custom linked libs script for ci.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci/scripts/checkldd.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/ci/scripts/checkldd.sh b/tools/ci/scripts/checkldd.sh new file mode 100755 index 000000000..e728fd85d --- /dev/null +++ b/tools/ci/scripts/checkldd.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "Custom libs linked" +grep "spm" "$(ldd $1)" + +search="$2" +if [[ "${search}" == "" ]]; then + search="${LIBNAME}_${LIBVERSION}" +fi +res=$(ldd $1|grep "spm"|grep "$search") + +if [[ "${res}" == "" ]]; then + echo "Cant find requested lib: $search" + exit 1 +fi +exit 0 |