added compile.sh

This commit is contained in:
celso 2022-11-05 17:49:34 -03:00
commit b0b8afa6d5
1 changed files with 4 additions and 0 deletions

4
compile.sh Executable file
View File

@ -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