start 166 B

1234567891011
  1. #!/bin/bash
  2. set -e
  3. clear
  4. cd "$(dirname "$0")"
  5. folder="build"
  6. if [ ! -e "$folder" ]; then
  7. cmake -B "$folder" -S . -G Ninja
  8. fi
  9. ninja -C "$folder"
  10. ./$folder/tetris