1 2 3 4 5 6
#!/bin/sh prog="$1" [ "$prog" ] || exit 1 shift set -x gcc -ggdb -Wall -pedantic -std=c99 -o "${prog%.c}" "${prog%.c}.c" $@