gm3d-gui/routine.sh

11 lines
299 B
Bash
Raw Permalink Normal View History

2020-06-09 14:07:18 +08:00
#!/bin/bash
if [[ ${1} == "configure" && ! -d "build/" ]]; then
mkdir build && cd build && rm -rf * && cmake ..
elif [[ ${1} == "configure" ]]; then
cd build && rm -rf * && cmake ..
elif [[ ${1} == "build" ]]; then
cd build && make
elif [[ ${1} == "install" ]]; then
cd build && make install
fi