summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/copylib.sh
blob: d01b89ebc91969ac38d183da35ed9a849ea35fc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env 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