build.sh - grimoire - dark wiki & knowledge base
(HTM) git clone https://git.drkhsh.at/grimoire.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
build.sh (429B)
---
1 #!/bin/sh
2
3 # Setup
4 mkdir -p bin
5
6 # Cleanup
7 rm -rf ../site
8 mkdir ../site
9
10 # Linux
11 if [ "${1}" = '--system' ];
12 then
13 clang-format -i main.c
14 rm -f ./bin/oscean
15 clang -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wuninitialized -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined main.c -o bin/oscean
16 fi
17
18 # Run
19 ./bin/oscean