view bin/cc @ 5838:600e1ac6d932

<b_jonas> ` o=bin/culprits-c && echo $\'#!/bin/sh\\n\'\'culprits "$@" | tr \\ \\\\n | sort | uniq -c | sort -rn | tr -s \\\\n\\ \\ \' > "$o" && chmod a+x "$o"
author HackBot
date Sun, 12 Jul 2015 12:44:14 +0000
parents 56dcce63901b
children de7749cfb1d9
line wrap: on
line source

#!/bin/sh
echo "$@" | sed 's/\\/\n/g' >/tmp/a.c && gcc -w -Wfatal-errors -std=c11 -O2 /tmp/a.c -o /tmp/a.out && /tmp/a.out