summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh23
1 files changed, 21 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index f272df6..70bdc5a 100755
--- a/build.sh
+++ b/build.sh
@@ -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
+