#!/usr/bin/env zsh jam clean if [ -f src1.o -o -f src2.o ]; then echo "FAILED: jam didn't actually clean" exit 1 fi jam if [ ! -f src1.o -o ! -f src2.o ]; then echo "FAILED: jam didn't build everything" exit 1 fi sleep 1 touch hdr1.h sleep 1 jam if [ src1.o -ot hdr1.h ]; then echo "FAILED: src1.o is older than hdr1.h" exit 1 fi if [ src2.o -ot hdr1.h ]; then echo "FAILED: src2.o is older than hdr1.h" exit 1 fi