Revision 8709
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.run | ||
---|---|---|
1 | 1 |
#!/bin/bash -e |
2 |
shopt -s expand_aliases |
|
3 | 2 |
# run scripts: a bash-based replacement for make |
4 | 3 |
# unlike make, supports full bash functionality including multiline commands |
5 | 4 |
# usage: path/to/dir/run cmd args |
... | ... | |
29 | 28 |
|
30 | 29 |
if self_not_included "${BASH_SOURCE[0]}"; then |
31 | 30 |
|
31 |
shopt -s expand_aliases |
|
32 |
|
|
32 | 33 |
set_var () { eval "$1"'="$2"'; } |
33 | 34 |
|
34 | 35 |
reverse () # usage: array=($(reverse args...)) |
Also available in: Unified diff
lib/util.run: moved `shopt -s expand_aliases` inside the include guard so callers can override the setting without it being reset if util.run is included again