Index

zydeco / master

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
304 Aug 2023 22:32f2ac8afCreate base Engine classJosh Stockin111G

Blob @ zydeco / zydeco.sh

text/x-shellscript437 bytesdownload raw
1#!/usr/bin/env bash
2
3BRIGHT_RED="\e[31;1m"
4BRIGHT_GREEN="\e[32;1m"
5RESET="\e[0m"
6
7function error {
8 echo -e "${BRIGHT_RED}Build error${RESET}"
9 exit 1
10}
11
12mkdir -p build/
13cd build/
14cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug .. || error
15ninja || error
16
17echo -e "${BRIGHT_GREEN}Build success${RESET}"
18echo "Running..."
19echo "-------- PROGRAM START ---------"
20./zydeco
21EC=$?
22echo "--------- PROGRAM END ----------"
23echo "Exited with $EC"
24