diff options
author | Jonas Kohl <gitlab@jonaskohl.de> | 2024-08-29 17:00:11 +0200 |
---|---|---|
committer | Jonas Kohl <gitlab@jonaskohl.de> | 2024-08-29 17:00:11 +0200 |
commit | 84ad096896e9948c722a957d07ed6868e252a9f7 (patch) | |
tree | b8ad1afadd89f1dc7599436cfb0f7f5fb0c177b6 /build.sh |
Initial commit
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d2cd839 --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir -p build + +rm -rf build/* + +gcc -o build/main main.c includes/*.c -Werror=incompatible-pointer-types + +if [ "$1" = "--run" ]; then + chmod +x ./build/main + ./build/main +fi |