#!/bin/bash set -e clear cd "$(dirname "$0")" export CMAKE_EXPORT_COMPILE_COMMANDS=true folder="build" if [ ! -e "$folder" ]; then cmake -B "$folder" -S . -G Ninja fi ninja -C "$folder" ./$folder/tetris