#!/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