summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
-rw-r--r--etc/build.usage5
-rw-r--r--subr/build_args.subr17
-rw-r--r--subr/ex_rtl_fileop.subr20
-rw-r--r--subr/ex_rtl_log.subr3
-rw-r--r--vars/env.vars1
6 files changed, 24 insertions, 24 deletions
diff --git a/build.sh b/build.sh
index 183367c7..c0986675 100755
--- a/build.sh
+++ b/build.sh
@@ -82,7 +82,7 @@ buildp_dispatch() {
ex_rtl_log_env_vars "build" \
$(set | awk -F= '/^PKG_/{print $1}' | sort);
fi;
- if [ "${ARG_XTRACE:-0}" -eq 1 ]; then
+ if [ "${ARG_VERBOSE:-0}" -ge 3 ]; then
set -o xtrace;
fi; ;;
exec_step) ex_rtl_log_msg info "Finished build step ${4} of package \`${_pkg_name}'."; ;;
diff --git a/etc/build.usage b/etc/build.usage
index 4a0a0d1b..8d46e768 100644
--- a/etc/build.usage
+++ b/etc/build.usage
@@ -1,6 +1,6 @@
usage: ./build.sh [-a nt32|nt64] [-b debug|release] [-C dir[,..]] [-D kind[,..]]
[-F ipv4|ipv6|offline] [-h] [-P [jobs]] [-r ALL|name[,..][:step,..]]
- [-R] [-v[v[v]]] [-x] [--as-needed] [--debug-minipix] [<target>[ ..]]
+ [-R] [-v[v[v[v]]]] [--as-needed] [--debug-minipix] [<target>[ ..]]
-a nt32|nt64 Selects 32-bit or 64-bit architecture; defaults to nt64.
-b debug|release Selects debug or release build; defaults to debug.
-C dir[,..] Clean build directory (build,) ${PREFIX} before processing build
@@ -31,8 +31,7 @@ usage: ./build.sh [-a nt32|nt64] [-b debug|release] [-C dir[,..]] [-D kind[,..]]
install_strip, install, and install_rpm.
-R Ignore build failures, skip printing package logs, and continue
building (relaxed mode.)
- -v[v[v]] Be verbose; -vv: always print package logs; -vvv: logs fileops.
- -x Set xtrace during package builds; implies -vv.
+ -v[v[v[v]]] Be verbose; -vv: always print package logs; -vvv: set xtrace during package builds; -vvvv: logs fileops.
--as-needed Don't build unless the midipix_build repository has received new commits.
--debug-minipix Don't strip(1) minipix binaries to facilitate debugging minipix.
<target>[ ..] One of:
diff --git a/subr/build_args.subr b/subr/build_args.subr
index 7f84414a..6d7c278e 100644
--- a/subr/build_args.subr
+++ b/subr/build_args.subr
@@ -15,7 +15,7 @@ BUILD_ARGS_SPEC="
ARG_VERBOSE:selfarg:-v:
ARG_VERBOSE:selfarg:-vv:
ARG_VERBOSE:selfarg:-vvv:
- ARG_XTRACE:-x:
+ ARG_VERBOSE:selfarg:-vvvv:
BUILD:arg:-b:";
build_args() {
@@ -69,15 +69,12 @@ build_args() {
fi;
ARG_RESTART="$(echo "${ARG_RESTART}" | sed "s/,/ /g")";
fi;
- if [ "${ARG_XTRACE:-0}" -eq 1 ]; then
- ARG_VERBOSE=2;
- else
- case "${ARG_VERBOSE}" in
- -v) ARG_VERBOSE=1; ;;
- -vv) ARG_VERBOSE=2; ;;
- -vvv) ARG_VERBOSE=3; ;;
- esac;
- fi;
+ case "${ARG_VERBOSE}" in
+ -v) ARG_VERBOSE=1; ;;
+ -vv) ARG_VERBOSE=2; ;;
+ -vvv) ARG_VERBOSE=3; ;;
+ -vvvv) ARG_VERBOSE=4; ;;
+ esac;
while [ ${#} -gt 0 ]; do
case "${1}" in
*=*) ex_rtl_set_var_unsafe "${1%%=*}" "${1#*=}"; ;;
diff --git a/subr/ex_rtl_fileop.subr b/subr/ex_rtl_fileop.subr
index 201d5abe..98116644 100644
--- a/subr/ex_rtl_fileop.subr
+++ b/subr/ex_rtl_fileop.subr
@@ -15,7 +15,7 @@ ex_rtl_fileop() {
cd) if [ \( -z "${1}" \) -o ! \( -L "${1}" -o -e "${1}" \) ]; then
ex_rtl_log_msg failexit "Invalid or non-existent directory \`${1}'.";
else
- ex_rtl_log_msg vvvo "Changing working directory to \`${1}'.";
+ ex_rtl_log_msg vvvv "Changing working directory to \`${1}'.";
exp_rtl_fileop_check "${PREFIX}" "${1}";
cd -- "${1}";
fi; ;;
@@ -25,7 +25,7 @@ ex_rtl_fileop() {
else
_src="${*}"; _src="${_src% *}";
_dst="${*}"; _dst="${_dst##* }";
- ex_rtl_log_msg vvvo "Copying \`${_src}' into \`${_dst}' w/ -pLR.";
+ ex_rtl_log_msg vvvv "Copying \`${_src}' into \`${_dst}' w/ -pLR.";
exp_rtl_fileop_check "${PREFIX}" "${*}";
cp -pLR -- "${@}";
fi; ;;
@@ -34,7 +34,7 @@ ex_rtl_fileop() {
else
_src="${*}"; _src="${_src% *}";
_dst="${*}"; _dst="${_dst##* }";
- ex_rtl_log_msg vvvo "Copying \`${_src}' into \`${_dst}' w/ -pPR.";
+ ex_rtl_log_msg vvvv "Copying \`${_src}' into \`${_dst}' w/ -pPR.";
exp_rtl_fileop_check "${PREFIX}" "${*}";
cp -pPR -- "${@}";
fi; ;;
@@ -46,13 +46,13 @@ ex_rtl_fileop() {
if ex_rtl_fileop test "${2}"; then
ex_rtl_fileop rm "${2}";
fi;
- ex_rtl_log_msg vvvo "Linking \`${1}' to \`${2}' w/ -fs";
+ ex_rtl_log_msg vvvv "Linking \`${1}' to \`${2}' w/ -fs";
ln -fs -- "${1}" "${2}";
fi; ;;
mv) if [ \( -z "${1}" \) -o \( -z "${2}" \) ]; then
ex_rtl_log_msg failexit "Missing parameters (in: mv ${*}.)";
else
- ex_rtl_log_msg vvvo "Moving \`${1}' to \`${2}' w/ -fs";
+ ex_rtl_log_msg vvvv "Moving \`${1}' to \`${2}' w/ -fs";
exp_rtl_fileop_check "${PREFIX}" "${1}" "${2}";
mv -f -- "${1}" "${2}";
fi; ;;
@@ -66,31 +66,31 @@ ex_rtl_fileop() {
if ex_rtl_fileop test "${1}"; then
ex_rtl_fileop rm "${1}";
fi;
- ex_rtl_log_msg vvvo "Making directory \`${1}'.";
+ ex_rtl_log_msg vvvv "Making directory \`${1}'.";
mkdir -p -- "${1}";
elif [ "${_op}" = mkfifo ]; then
exp_rtl_fileop_check "${PREFIX}" "${1}";
if ex_rtl_fileop test "${1}"; then
ex_rtl_fileop rm "${1}";
fi;
- ex_rtl_log_msg vvvo "Creating FIFO \`${1}'.";
+ ex_rtl_log_msg vvvv "Creating FIFO \`${1}'.";
exp_rtl_fileop_check "${PREFIX}" "${1}";
mkfifo -- "${1}";
elif [ "${_op}" = rm ]\
&& ex_rtl_fileop test "${1}"; then
- ex_rtl_log_msg vvvo "Removing directory or file \`${1}'.";
+ ex_rtl_log_msg vvvv "Removing directory or file \`${1}'.";
exp_rtl_fileop_check "${PREFIX}" "${1}";
rm -rf -- "${1}";
elif [ "${_op}" = source_opt ]\
&& ex_rtl_fileop test "${1}"; then
- ex_rtl_log_msg vvvo "Sourcing file \`${1}'.";
+ ex_rtl_log_msg vvvv "Sourcing file \`${1}'.";
exp_rtl_fileop_check "${PREFIX}" "${1}";
. "${1}";
elif [ "${_op}" = test ]\
&& ! [ \( -L "${1}" \) -o \( -e "${1}" \) ]; then
return 1;
elif [ "${_op}" = touch ]; then
- ex_rtl_log_msg vvvo "Touching file \`${1}'.";
+ ex_rtl_log_msg vvvv "Touching file \`${1}'.";
exp_rtl_fileop_check "${PREFIX}" "${1}";
touch -- "${1}";
fi; shift;
diff --git a/subr/ex_rtl_log.subr b/subr/ex_rtl_log.subr
index e7d9ef3d..2ed295b6 100644
--- a/subr/ex_rtl_log.subr
+++ b/subr/ex_rtl_log.subr
@@ -44,6 +44,9 @@ ex_rtl_log_msg() {
elif [ "${_lvl}" = vvvo ]\
&& [ "${EXP_RTL_LOG_VNFO_LVL:-0}" -lt 3 ]; then
return;
+ elif [ "${_lvl}" = vvvv ]\
+ && [ "${EXP_RTL_LOG_VNFO_LVL:-0}" -lt 4 ]; then
+ return;
fi;
_lvl_uc="$(ex_rtl_toupper "${_lvl%exit}")";
_attr="$(ex_rtl_get_var_unsafe "DEFAULT_LOG_MSG_${_lvl_uc}_COLOUR")";
diff --git a/vars/env.vars b/vars/env.vars
index 7e7b6d50..e946c36a 100644
--- a/vars/env.vars
+++ b/vars/env.vars
@@ -26,6 +26,7 @@ DEFAULT_LOG_MSG_VNFO_COLOUR=96;
DEFAULT_LOG_MSG_VUCC_COLOUR=90;
DEFAULT_LOG_MSG_VVFO_COLOUR=96;
DEFAULT_LOG_MSG_VVVO_COLOUR=96;
+DEFAULT_LOG_MSG_VVVV_COLOUR=96;
DEFAULT_TIMESTAMP_FMT="%Y/%m/%d %H:%M:%S";
# vim:filetype=sh textwidth=0