summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cc314cf)
Change-Id: Ifa110754469a25ffe61b3cf28efb8190d8e30eb6
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
+print_header() {
+ set +x
+
+ local message=" $1 "
+ local message_len
+ local padding_len
+
+ message_len="${#message}"
+ padding_len=$(( (80 - (message_len)) / 2 ))
+
+ printf '\n'; printf -- '#%.0s' {1..80}; printf '\n'
+ printf -- '-%.0s' {1..80}; printf '\n'
+ printf -- '#%.0s' $(seq 1 $padding_len); printf '%s' "$message"; printf -- '#%.0s' $(seq 1 $padding_len); printf '\n'
+ printf -- '-%.0s' {1..80}; printf '\n'
+ printf -- '#%.0s' {1..80}; printf '\n\n'
+
+ set -x
+}
+
failed_configure() {
# Assume we are in the configured build directory
echo "#################### BEGIN config.log ####################"
failed_configure() {
# Assume we are in the configured build directory
echo "#################### BEGIN config.log ####################"