commit b0b8afa6d58c57dd0a0a78cf47cc27a66eb9499a Author: celso Date: Sat Nov 5 17:49:34 2022 -0300 added 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