3 ## live-build(7) - System Build Scripts
4 ## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
6 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7 ## This is free software, and you are welcome to redistribute it
8 ## under certain conditions; see COPYING for details.
16 printf "${STRING}\n" "${@}"
21 if [ "${_DEBUG}" = "true" ]
26 printf "D: ${STRING}\n" "${@}"
32 if [ "${_DEBUG}" = "true" ]
37 printf "D: ${STRING}" "${@}"
39 if [ "${_COLOR}" = "false" ]
43 printf "... ${YELLOW}${BLINK}running${NO_COLOR}"
53 if [ "${_COLOR}" = "false" ]
57 printf "${RED}E${NO_COLOR}:"
60 printf " ${STRING}\n" "${@}" >&2
65 if [ "${_QUIET}" != "true" ]
70 if [ "${_COLOR}" = "false" ]
74 printf "${WHITE}P${NO_COLOR}:"
77 printf " ${STRING}\n" "${@}"
81 Echo_message_running
()
83 if [ "${_QUIET}" != "true" ]
88 if [ "${_COLOR}" = "false" ]
92 printf "${WHITE}P${NO_COLOR}:"
95 printf " ${STRING}" "${@}"
97 if [ "${_COLOR}" = "true" ]
99 printf "... ${YELLOW}${BLINK}running${NO_COLOR}"
108 if [ "${_VERBOSE}" = "true" ]
113 printf "I: ${STRING}\n" "${@}"
117 Echo_verbose_running
()
119 if [ "${_VERBOSE}" != "true" ]
124 printf "I: ${STRING}" "${@}"
126 if [ "${_COLOR}" = "true" ]
128 printf "... ${YELLOW}${BLINK}running${NO_COLOR}"
140 if [ "${_COLOR}" = "false" ]
144 printf "${YELLOW}W${NO_COLOR}:"
147 printf " ${STRING}\n" "${@}"
154 if [ "${_COLOR}" = "false" ]
156 if [ "${__RETURN}" = "0" ]
163 Cursor_columns_backward
8
165 if [ "${__RETURN}" = "0" ]
167 printf " ${GREEN}done${NO_COLOR}. \n"
169 printf " ${RED}failed${NO_COLOR}.\n"
176 if [ "${_COLOR}" = "false" ]
178 printf " already done.\n"
180 Cursor_columns_backward
8
182 printf " ${GREEN}already done${NO_COLOR}.\n"
196 case "${LB_PARENT_DISTRIBUTION}" in
198 Echo_message
"If the following stage fails, the most likely cause of the problem is with your mirror configuration, a caching proxy or the sid distribution."
201 Echo_message
"If the following stage fails, the most likely cause of the problem is with your mirror configuration or a caching proxy."