summaryrefslogblamecommitdiff
path: root/.ci/buildlib.sh
blob: 18ece90eb6a898083ffeba8a079b8c25d9a28178 (plain) (tree)
1
2
3
4
5
6
7
8
9








                              
                     










                                                               
#!/bin/bash

mkdir /usr/local/spm
cp -r . /usr/local/spm
export dir123=$(pwd)
cd /usr/local/spm

export installname="${1}_${2}"
export envname="env"
export srcbranch="$2"
./.ci/run.sh ./getsrc.sh "$1" || exit 1
./.ci/run.sh ./build.sh "$1" || exit 1

echo mkdir "${dir123}/bin/${installname}"
mkdir "${dir123}/bin/${installname}"

echo cp -r "/usr/local/spm/bin/${installname}" "${dir123}/bin/"
cp -r "/usr/local/spm/bin/${installname}" "${dir123}/bin/"

echo "cp ./env/runenv.sh ${dir123}/bin/${installname}/"
cp "./env/runenv.sh" "${dir123}/bin/${installname}/" || exit 1