3 export DATE
=$
(date +%Y
%m
%d
%H
%M
%S
)
4 export CPUS
=${CPUS:-$(nproc)}
17 echo "$(basename ${0:btr}) v0.4.0, (c) Michael Wallner <mike@php.net>"
25 function btr-confirm
{
43 function btr-setup-rundir
{
44 local default_rundir
="${1:-/tmp/btr}"
46 if test -z "$BTR_RUNDIR"
48 export BTR_RUNDIR
="$default_rundir"
50 export BTR_RUNDIR
=$
(realpath
"$BTR_RUNDIR")
53 mkdir
-p "$BTR_RUNDIR" || error
"Could not create directory '$BTR_RUNDIR'"
55 export -f btr-setup-rundir
57 function btr-setup-verbosity
{
58 local for_make
=${1:-false}
84 export BTR_QUIET BTR_VERBOSE BTR_FORCEYES BTR_QUIET_FLAG BTR_SILENT_FLAG BTR_VERBOSE_FLAG SAY
86 export -f btr-setup-verbosity