view bin/runce @ 1721:ab80805a8878

<elliott> echo "#!/bin/sh" >bin/undo; echo \'hg diff -c "$@" | patch -R\' >>bin/undo; chmod +x bin/undo
author HackBot
date Thu, 24 Jan 2013 21:13:03 +0000
parents 85729b555d76
children
line wrap: on
line source

#!/bin/bash
t=`tempfile`
echo "$@" | gcc -o $t -x c - 2>/dev/null && $t
rm $t