From: Michal Sojka Date: Tue, 30 Dec 2008 08:04:10 +0000 (+0100) Subject: Added shell alias for OMK invocation without leaf Makefile X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/commitdiff_plain/853a0ee13d528a2f72930ac6474da3872b7bd371 Added shell alias for OMK invocation without leaf Makefile --- diff --git a/leaf-makefile/Makefile b/leaf-makefile/Makefile index b22a357..76b56fd 100644 --- a/leaf-makefile/Makefile +++ b/leaf-makefile/Makefile @@ -7,7 +7,7 @@ endif ifeq ($(MAKERULES_DIR),) all : default .DEFAULT:: - @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n" + @echo -e "\nThe Makefile.rules has not been found in this or parent directory\n" else include $(MAKERULES_DIR)/Makefile.rules endif diff --git a/omk-alias.sh b/omk-alias.sh new file mode 100644 index 0000000..c525a20 --- /dev/null +++ b/omk-alias.sh @@ -0,0 +1 @@ +alias omk='_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'