From 853a0ee13d528a2f72930ac6474da3872b7bd371 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 30 Dec 2008 09:04:10 +0100 Subject: [PATCH] Added shell alias for OMK invocation without leaf Makefile --- leaf-makefile/Makefile | 2 +- omk-alias.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 omk-alias.sh 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' -- 2.39.2