#!/bin/bash cat >/tmp/autobuild_tmp_$$.sh < test1.asm if test \$? -eq 0; then fasm test1.asm test1.bin if test \$? -eq 0; then ../ecomp-c/emul -v test1.bin if test \$? -ne 0; then echo "ERROR: running emulator with test1.bin" fi else echo "ERROR: assembling test1.asm" fi else echo "ERROR: compiling test1.c" grep '; ERROR' test1.asm fi else echo "ERROR: building cc" fi EOF chmod 775 /tmp/autobuild_tmp_$$.sh ls cc.c c4.c ../ecomp-c/emul.c ../ecomp-c/asm-i386.c test1.c | \ entr bash /tmp/autobuild_tmp_$$.sh rm -f /tmp/autobuild_tmp_$$.sh