#!/bin/sh # Helper script to run OMK from directories without the leaf OMK Makefile omk_rules=$( old_pwd="" while [ ! -e Makefile.rules ]; do if [ "$old_pwd" = `pwd` ]; then echo "Makefile.rules has not been found in this or parent directory" >&2; exit 1; else old_pwd=`pwd`; cd -L .. 2>/dev/null; fi; done; echo `pwd`/Makefile.rules ) [ "$omk_rules" ] && make -f $omk_rules "$@"