#!/bin/env bash

filename=${1%.*}


gcc -o bf-compile bf-compile.c
./bf-compile ${filename}.bf
nasm -s -f elf64 -o ${filename}.o ${filename}.asm
gcc -o ${filename} ${filename}.o
#!/usr/bin/env bash

filename=${1%.*}

gcc -o bf-compile bf-compile.c && \
./bf-compile ${filename}.bf && \
nasm -s -f elf64 -o ${filename}.o ${filename}.asm && \
gcc -o ${filename} ${filename}.o
Update to link shell script commands to only run if previous was successful
Update to link shell script commands to only run if previous was successful
