Revision 13978
Added by Aaron Marcuse-Kubitza over 10 years ago
import_all | ||
---|---|---|
4 | 4 |
|
5 | 5 |
if test "$1" = .; then set --; fi # was .-included without args, so $@ is wrong |
6 | 6 |
|
7 |
hidden_srcs() |
|
8 |
{ |
|
9 |
local hidden_srcs=1 inputs=() # with_all adds the hidden srcs to @inputs |
|
10 |
. "$selfDir/with_all" import by_col=1 "$@" |
|
11 |
} |
|
12 |
|
|
7 | 13 |
main() |
8 | 14 |
{ |
9 | 15 |
local self="${BASH_SOURCE[0]}" |
... | ... | |
33 | 39 |
local import_source= # Source tables have already been imported |
34 | 40 |
export import_source # must come after local |
35 | 41 |
|
36 |
for src in geoscrub herbaria IRMNG IUCN newWorld TNRS; do |
|
37 |
make inputs/."$src"/import "$@" & |
|
38 |
sleep 5 # wait for make commands to scroll by |
|
39 |
done |
|
40 |
|
|
42 |
hidden_srcs "$@" # separate function to avoid overwriting @inputs |
|
41 | 43 |
wait # wait for asynchronous commands |
42 | 44 |
|
43 | 45 |
. "$selfDir/with_all" import_scrub "$@" # uses $by_col |
Also available in: Unified diff
fix: bin/import_all: hidden srcs: use with_all for this to avoid needing to list every source, and to display the backgrounded command with the variables substituted