summaryrefslogtreecommitdiff
path: root/.ci/buildlib.sh
blob: 18ece90eb6a898083ffeba8a079b8c25d9a28178 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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