]> rtime.felk.cvut.cz Git - omk/sssa.git/blob - omk
Merge branch 'master' of sojka@rtime.felk.cvut.cz:/var/git/omk into sssa
[omk/sssa.git] / omk
1 #!/bin/sh
2
3 # Helper script to run OMK from directories without the leaf OMK Makefile
4
5 omk_rules=$(
6 old_pwd=""
7 while [ ! -e Makefile.rules ]; do
8        if [ "$old_pwd" = `pwd`  ]; then 
9                echo "Makefile.rules has not been found in this or parent directory" >&2; exit 1; 
10        else
11                old_pwd=`pwd`; 
12                cd -L .. 2>/dev/null; 
13        fi; 
14 done; 
15 echo `pwd`/Makefile.rules
16 )
17
18 [ "$omk_rules" ] && make -f $omk_rules "$@"