code / scripts

Lines748 Shell528 Python72 Lua67 Bourne Again Shell62 make15
1 others 4
Markdown4
(6 lines)
1 #!/bin/sh
2 # cc-run - A simple script to compile and run a program with cc
3 out=$(mktemp /tmp/cc-run-XXXXXX)
4 trap "rm -f $out" EXIT
5 ${CC:-cc} -fdollars-in-identifiers -o "$out" $@
6 $out