c-basic/compile.sh

5 lines
93 B
Bash
Executable File

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