becs/build.sh

15 lines
227 B
Bash
Executable file

# Build script for BECS
if [[ ! -d ./build ]]; then
mkdir "./build"
fi
pushd "./build"
echo "Building test/main"
gcc -g -std=c89 "../test/main.c" -o main.c
if [[ $? == 0 ]] && [[ $1 == "--run" ]]; then
./main.c
fi
popd