Mercurial > repos > icfp2012
comparison simulate @ 2:d21c31c6b5ef
Add dummy files for bin and build. Add simulate script for hooking up simulator and bot.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 13 Jul 2012 16:18:04 -0700 |
parents | |
children | ff8d7b4499f5 |
comparison
equal
deleted
inserted
replaced
1:d486d56f1c3c | 2:d21c31c6b5ef |
---|---|
1 #!/bin/sh | |
2 | |
3 killafter () { | |
4 sleep $1; | |
5 /bin/kill -SIGINT $!; | |
6 } | |
7 | |
8 mkfifo .simpipe | |
9 if [ $# -gt 1 ]; then | |
10 bin/sim $1 < .simpipe | bin/lifter > .simpipe & killafter $2 | |
11 else | |
12 bin/sim $1 < .simpipe | bin/lifter > .simpipe | |
13 fi | |
14 rm .simpipe | |
15 |