diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2025-11-19 23:09:29 +0100 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2025-11-19 23:09:29 +0100 |
| commit | fe9e5b986c72d622f2a9c8ab7e4ff24eae14fc1d (patch) | |
| tree | 80287196e22cf5772c61ace52f0049ab045e53c1 /build.sh | |
| parent | 2440a27f92c72f17e90b7ad1fca9bc64ea23f68a (diff) | |
updated build script to remove local binary from repo, added [MIT] license
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -1,4 +1,23 @@ #!/usr/bin/env bash -gcc g.c -o g -O3 -Wall -Wextra -pedantic || printf ":: shit\n" -printf ":: done\n" +# compile g +if gcc g.c -o g -O3 -Wall -Wextra -pedantic; then + # move to PATH + if sudo cp ./g /usr/bin/g; then + # remove binary from local repo + if rm ./g; then + # status message + printf ":: done ♥\n" + else + # or kill myself + printf ":: couldnt remove binary from local repo, fuck you ♥\n" + fi + else + # or kill yourself + printf ":: couldnt copy to PATH, fuck you ♥\n" + fi +else +# or kill ourselves + printf ":: couldnt compile, fuck you ♥\n" +fi + |