#!/bin/sh -e LIN="uxncli $HOME/roms/uxnlin.rom" ASM="uxncli $HOME/roms/drifblim.rom" if [[ "$*" == *"--lint"* ]] then $LIN decoder.tal clang-format -i lz_main.c fi # Make c file cc lz_main.c -o main && ./main ./main # read example.txt, write compressed.bin $ASM decoder.tal decoder.rom uxncli decoder.rom compressed.bin decompressed.txt rm ./main rm ./compressed.bin rm ./decompressed.txt