Dyad/make.project/install_rex.sh

15 lines
425 B
Bash
Raw Normal View History

2023-02-19 01:02:03 +00:00
function echofail() {
echo "Failed: $1"
exit 1
}
echo "Downloading Rex Source code to '${dir_stage}/rex'."
git clone https://source.silogroup.org/SURRO-Linux/rex ${dir_stage}/rex || echofail "Cloning rex repo."
pushd ${dir_stage}/rex || echofail "Entering rex build dir"
cmake . || echofail "cmake/rex."
make || echofail "make/rex"
cp -v ./rex ${dir_localtools}/ || fail "Installing rex to '${dir_localtools}'."
dirs -c