summaryrefslogtreecommitdiff
path: root/tools/ci
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-06 23:37:09 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-07 01:41:38 +0300
commit2fe4498d6d408e416d4e6970940ef52d269d202a (patch)
treeaaba2cdcc6daa9a3f1f05d2fd167112d4031e7b5 /tools/ci
parent5718506135a6db36ce4f397099385dbb172be210 (diff)
downloadplus-2fe4498d6d408e416d4e6970940ef52d269d202a.tar.gz
plus-2fe4498d6d408e416d4e6970940ef52d269d202a.tar.bz2
plus-2fe4498d6d408e416d4e6970940ef52d269d202a.tar.xz
plus-2fe4498d6d408e416d4e6970940ef52d269d202a.zip
Add copylib script for copy library from gitlab artifact. [skip ci]
Diffstat (limited to 'tools/ci')
-rwxr-xr-xtools/ci/scripts/copylib.sh13
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