Mine
public text v1 · immutable#!/bin/sh
# this is /home/paco/hacking/cint/runme
LINES=`wc -l $1 | cut -d" " -f1`
END=$((LINES-2))
CFLAGS=`sed -n "2s/^#//p" $1`
tail -n-$END $1 > /tmp/$1
gcc $CFLAGS -o /tmp/$1.bin /tmp/$1
/tmp/$1.bin
#!/bin/env /home/paco/hacking/cint/runme
# -lm
// this is /home/paco/hacking/cint/hello.c
#include <stdio.h>
#include <math.h>
main() {
printf("Hellow World\n");
printf("%g\n",sin(10));
}
chmod a+x runme
chmod a+x hello.c
./hello.c