Revision 8641
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.run | ||
---|---|---|
30 | 30 |
|
31 | 31 |
echo_stdin () { tee -a /dev/stderr; } # usage: input|echo_stdin|cmd |
32 | 32 |
|
33 |
echo_vars () { declare -p "$@" >&2; } # usage: echo_vars var... |
|
34 |
|
|
35 |
echo_export () |
|
36 |
{ |
|
37 |
echo_vars "$@" |
|
38 |
export "$@" |
|
39 |
} |
|
40 |
|
|
33 | 41 |
usage () { echo "Usage: $1" >&2; (exit 2); } |
34 | 42 |
|
35 | 43 |
top_dir="$(dirname "$0")" # outermost script |
Also available in: Unified diff
lib/util.run: added echo_vars (), echo_export ()