]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Added shell alias for OMK invocation without leaf Makefile
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Dec 2008 08:04:10 +0000 (09:04 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Dec 2008 08:04:10 +0000 (09:04 +0100)
leaf-makefile/Makefile
omk-alias.sh [new file with mode: 0644]

index b22a35765d37ba44709f41e4182c62dbed0e43b7..76b56fd4c60faeb7aef88a652e680d8cd0db31b0 100644 (file)
@@ -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 (file)
index 0000000..c525a20
--- /dev/null
@@ -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'