~rabbits/seconth

seconth/build.sh -rwxr-xr-x 515 bytes
e48d7649neauoire Extended length 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# Lint
clang-format -i 2th.c

# Clean
rm -f ./2th

# Build(debug)
# cc -std=c89 -DDEBUG -Wall -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -o 2th 2th.c

# Build(fast)
cc 2th.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -o 2th

# Size
echo "Size: $(du -sk ./2th)"

# Install
if [ -d "$HOME/bin" ] && [ -e ./2th ]
then
	cp ./2th $HOME/bin
    echo "Installed: $HOME/bin" 
fi

# Run
./2th calendar