diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-06 23:37:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-07 01:41:38 +0300 |
commit | 2fe4498d6d408e416d4e6970940ef52d269d202a (patch) | |
tree | aaba2cdcc6daa9a3f1f05d2fd167112d4031e7b5 /tools | |
parent | 5718506135a6db36ce4f397099385dbb172be210 (diff) | |
download | mv-2fe4498d6d408e416d4e6970940ef52d269d202a.tar.gz mv-2fe4498d6d408e416d4e6970940ef52d269d202a.tar.bz2 mv-2fe4498d6d408e416d4e6970940ef52d269d202a.tar.xz mv-2fe4498d6d408e416d4e6970940ef52d269d202a.zip |
Add copylib script for copy library from gitlab artifact. [skip ci]
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci/scripts/copylib.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/ci/scripts/copylib.sh b/tools/ci/scripts/copylib.sh new file mode 100755 index 000000000..b50ab4832 --- /dev/null +++ b/tools/ci/scripts/copylib.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +export libname="$1_$2" + +rm -rf /usr/local/spm/bin/${libname} +mkdir -p /usr/local/spm/bin + +cp -r ./bin /usr/local/spm/ +ls /usr/local/spm/bin/${libname} +if [ "$?" != 0 ]; then + echo "Library $1 $2 copy failed" + exit 1 +fi |