aboutsummaryrefslogtreecommitdiff
path: root/code/build.sh
blob: cf397d6ccedfcfb921e154f1e83197dc4d0f1ed6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -eu

ScriptDirectory="$(dirname "$(readlink -f "$0")")"
cd "$ScriptDirectory"

mkdir -p ../build
Output="../build/build"

if [ ! -x "$Output" ] 
then
 cc -Wno-write-strings -g -o "$Output" build.cpp
fi

$Output