新建脚本:touch module_build.sh,添加如下内容:
#!/bin/sh
build_rockit(){
echo "------start build rockit------"
make rockit-dirclean
make rockit
}
build_vio(){
echo "------start build vio------"
make vio-dirclean
make vio
}
case "$1" in
rockit)
echo "case rockit"
build_rockit
;;
vio)
echo "case vio"
build_vio
;;
esac
使用方法:
chmod +x module_build.sh
./module_build.sh vio 或者
./module_build.sh rockit