mirror of
https://git.sr.ht/~rabbits/thousand-rooms
synced 2024-11-16 19:48:44 +01:00
17 lines
232 B
Bash
Executable file
17 lines
232 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
echo "Cleaning.."
|
|
rm -f ./bin/book
|
|
|
|
if [ "${1}" = '--format' ];
|
|
then
|
|
echo "Formatting.."
|
|
clang-format -i src/book.c
|
|
fi
|
|
|
|
mkdir -p bin
|
|
mkdir -p output
|
|
|
|
cc -std=c89 -DNDEBUG -Os -g0 -s src/book.c -o bin/book
|
|
|
|
bin/book
|