9mm/test/test.awk

15 lines
193 B
Awk

BEGIN {
print "#!/usr/bin/expect -f"
print "spawn fennel main.fnl"
}
/^#/ { next }
{ print "expect -re \"Player .'s turn:\""
print "send -- \"" $0 "\\r\""
}
END {
print "interact"
}