changeset 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 d486d56f1c3c
children bb29dcd46cbf
files bin/dummy build/dummy simulate
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/simulate	Fri Jul 13 16:18:04 2012 -0700
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+killafter () {
+	sleep $1;
+	/bin/kill -SIGINT $!;
+}
+
+mkfifo .simpipe
+if [ $# -gt 1 ]; then 
+	bin/sim $1 < .simpipe | bin/lifter > .simpipe & killafter $2
+else
+	bin/sim $1 < .simpipe | bin/lifter > .simpipe
+fi
+rm .simpipe
+