#!/bin/sh set -e files="$1" compiler="$2" options="$3" for f in $files; do if [-f "$f" ]; then echo "Compiling '$f'.." $compiler $options $f else echo "'$f' not found!" fi done