From b0b8afa6d58c57dd0a0a78cf47cc27a66eb9499a Mon Sep 17 00:00:00 2001 From: celso Date: Sat, 5 Nov 2022 17:49:34 -0300 Subject: [PATCH] added compile.sh --- compile.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 compile.sh diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..9bfab4d --- /dev/null +++ b/compile.sh @@ -0,0 +1,4 @@ +#!/bin/bash +[ "${1}" == "clean" ] && rm $(ls --color=no -1 | grep -v "\(\.c\|\.sh\)$") && exit +gcc -Wall -O2 -o "${1:0:-2}" "${1}" +exit