5 lines
136 B
Bash
5 lines
136 B
Bash
|
#!/bin/bash
|
||
|
[ "${1}" == "clean" ] && rm $(ls --color=no -1 | grep -v "\(\.c\|\.sh\)$") && exit
|
||
|
gcc -Wall -O2 -o "${1:0:-2}" "${1}"
|
||
|
exit
|