#!/bin/bash set -e set -o pipefail if [ ! -d build ]; then mkdir build fi cd build git submodule update --init --recursive if [ -n "$1" ]; then cmake -DTORCHAIR_INSTALL_DST=$1 .. else cmake .. fi make install_torchair -j8