c-basic/compile.sh

5 lines
98 B
Bash
Executable File

#!/bin/bash
echo "compiling $1 ..."
noext=$(echo "$1" | cut -f 1 -d '.')
gcc $1 -o bin/$noext -lm