#!/bin/sh if [ ! -d "bin" ] || [ "$2" = 'D' ]; then sh compile.sh fi if [ -f "$1" ]; then cat "$1" | ./bin/BFBCompiler [ $? -eq 0 ] && octave bottler.m else echo "$1" | ./bin/BFBCompiler [ $? -eq 0 ] && octave bottler.m fi