Project

General

Profile

« Previous | Next » 

Revision 8713

lib/util.run: renamed $verbose to $verbosity because it's an integer level, not a boolean. continue to support specifying the verbosity in $verbose.

View differences:

lib/util.run
17 17
}
18 18
fi ####
19 19

  
20
: "${verbose=2}"
20
: "${verbosity=2}"
21 21

  
22 22
include_guard_var () { readlink -f -- "$1"|sed 's/[^a-zA-Z0-9_]/_/g'; }
23 23

  
......
40 40
	for (( i=$#; i >= 1; i-- )); do printf '%q ' "${!i}"; done
41 41
}
42 42

  
43
: "${verbose:=0}"
43
: "${verbosity:=$verbose}" "${verbosity:=0}"
44 44

  
45 45
echo_cmd () { echo "$PS4$*" >&2; }
46 46

  
......
76 76
	echo_vars "$@"
77 77
}
78 78

  
79
if test "$verbose" -ge 2; then
79
if test "$verbosity" -ge 2; then
80 80
	alias export="echo_export" # automatically echo env vars when they are set
81 81
fi
82 82

  

Also available in: Unified diff