bfbcompiler/compile.sh

14 lines
190 B
Bash
Executable File

#!/bin/sh
if [ ! -d "bin" ]; then
cmake -S . -B bin
fi
cmake --build bin --clean-first
if [ -f "$1" ]; then
cat "$1" | ./bin/BFBCompiler
else
echo "$1" | ./bin/BFBCompiler
fi