Mercurial > repo
view bin/runcpp @ 4422:0dd2430deb55
<kmc> printf \'echo "$1" | /hackenv/lib/c++decl\\n\' > bin/c++decl && chmod +x bin/c++decl
author | HackBot |
---|---|
date | Sun, 09 Feb 2014 02:02:26 +0000 |
parents | 9bd7a48e95a5 |
children |
line wrap: on
line source
#!/bin/bash sed s:\\n:\n:g >/tmp/in.cpp <<<"$@"; g++ -o /tmp/a.out /tmp/in.cpp; /tmp/a.out