Revision 11370
Added by Aaron Marcuse-Kubitza about 11 years ago
with_all | ||
---|---|---|
10 | 10 |
|
11 | 11 |
# Was run without initial ".", or with insufficient parameters |
12 | 12 |
if test "${BASH_LINENO[1]}" = 0 -o "$#" -lt 1; then |
13 |
echo "Usage: [all=1;] . $self make_target [vars...] (note initial \".\")"\
|
|
14 |
|fold -s >&2
|
|
13 |
echo "Usage: [all=1] [inputs=(inputs/src/ ...)]; . $self make_target \
|
|
14 |
[vars...] (note initial \".\")"|fold -s >&2
|
|
15 | 15 |
return 2 |
16 | 16 |
fi |
17 | 17 |
if test -n "$all"; then inputs=(inputs/{.[^as.],}*/) #not . .. .svn .archive |
18 |
else inputs=(inputs/*/)
|
|
18 |
elif test ! "${inputs+isset}"; then inputs=(inputs/*/)
|
|
19 | 19 |
fi |
20 | 20 |
|
21 | 21 |
for input in "${inputs[@]}"; do |
Also available in: Unified diff
bin/with_all: added support for providing a custom list of inputs to run the command on