# HG changeset patch # User Eugene Paskevich # Date 1191991756 -10800 # Node ID 31cf04fc588b72068b56351101be512217245ff1 # Parent a9e9a408cfc948d0b4bf0e51e161709db6453640 Made colourised strings more readable. diff -r a9e9a408cfc9 -r 31cf04fc588b buildsys.mk.in --- a/buildsys.mk.in Wed Oct 10 07:14:07 2007 +0300 +++ b/buildsys.mk.in Wed Oct 10 07:49:16 2007 +0300 @@ -380,21 +380,31 @@ fi \ done -DIR_ENTER = printf "\033[0;36mEntering directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd $$i || exit 1 -DIR_LEAVE = printf "\033[0;36mLeaving directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd .. || exit 1 -DEPEND_STATUS = printf "\033[0;33mGenerating dependencies...\033[0m\r" -DEPEND_OK = printf "\033[0;32mSuccessfully generated dependencies.\033[0m\n" -DEPEND_FAILED = printf "\033[0;31mFailed to generate dependencies!\033[0m\n"; exit 1 -COMPILE_STATUS = printf "\033[0;33mCompiling \033[1;33m$<\033[0;33m...\033[0m\r" -COMPILE_OK = printf "\033[0;32mSuccessfully compiled \033[1;32m$<\033[0;32m.\033[0m\n" -COMPILE_FAILED = printf "\033[0;31mFailed to compile \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1 -LINK_STATUS = printf "\033[0;33mLinking \033[1;33m$@\033[0;33m...\033[0m\r" -LINK_OK = printf "\033[0;32mSuccessfully linked \033[1;32m$@\033[0;32m.\033[0m\n" -LINK_FAILED = printf "\033[0;31mFailed to link \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1 -INSTALL_STATUS = printf "\033[0;33mInstalling \033[1;33m$$i\033[0;33m...\033[0m\r" -INSTALL_OK = printf "\033[0;32mSuccessfully installed \033[1;32m$$i\033[0;32m.\033[0m\n" -INSTALL_FAILED = printf "\033[0;31mFailed to install \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 -DELETE_OK = printf "\033[0;34mDeleted \033[1;34m$$i\033[0;34m.\033[0m\n" -DELETE_FAILED = printf "\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 +NORM = \e[0m +BOLD = \e[1m + +RED = \e[0;31m +GREEN = \e[0;32m +BROWN = \e[0;33m +BLUE = \e[0;34m +CYAN = \e[0;36m + + +DIR_ENTER = printf "$(CYAN)Entering directory $(BOLD)$$i$(CYAN).$(NORM)\n"; cd $$i || exit 1 +DIR_LEAVE = printf "$(CYAN)Leaving directory $(BOLD)$$i$(CYAN).$(NORM)\n"; cd .. || exit 1 +DEPEND_STATUS = printf "$(BROWN)Generating dependencies...$(NORM)\r" +DEPEND_OK = printf "$(GREEN)Successfully generated dependencies.$(NORM)\n" +DEPEND_FAILED = printf "$(RED)Failed to generate dependencies!$(NORM)\n"; exit 1 +COMPILE_STATUS = printf "$(BROWN)Compiling $(BOLD)$<$(BROWN)...$(NORM)\r" +COMPILE_OK = printf "$(GREEN)Successfully compiled $(BOLD)$<$(GREEN).$(NORM)\n" +COMPILE_FAILED = printf "$(RED)Failed to compile $(BOLD)$<$(RED)!$(NORM)\n"; exit 1 +LINK_STATUS = printf "$(BROWN)Linking $(BOLD)$@$(BROWN)...$(NORM)\r" +LINK_OK = printf "$(GREEN)Successfully linked $(BOLD)$@$(GREEN).$(NORM)\n" +LINK_FAILED = printf "$(RED)Failed to link $(BOLD)$@$(RED)!$(NORM)\n"; exit 1 +INSTALL_STATUS = printf "$(BROWN)Installing $(BOLD)$$i$(BROWN)...$(NORM)\r" +INSTALL_OK = printf "$(GREEN)Successfully installed $(BOLD)$$i$(GREEN).$(NORM)\n" +INSTALL_FAILED = printf "$(RED)Failed to install $(BOLD)$$i$(RED)!$(NORM)\n"; exit 1 +DELETE_OK = printf "$(BLUE)Deleted $(BOLD)$$i$(BLUE).$(NORM)\n" +DELETE_FAILED = printf "$(RED)Failed to delete $(BOLD)$$i$(RED)!$(NORM)\n"; exit 1 -include .deps