#!/bin/bash for i in */ do cd $i [ -f MAKEFILE ] && make || lilypond *.ly cd - done zip -r release.zip */ -x **/*.ly