Revision 7095
Added by Aaron Marcuse-Kubitza almost 12 years ago
bin/import_all | ||
---|---|---|
25 | 25 |
wait # wait for asynchronous commands |
26 | 26 |
unset all |
27 | 27 |
|
28 |
export import_source= # Source tables have already been imported |
|
28 |
local import_source= # Source tables have already been imported |
|
29 |
export import_source # must come after local |
|
29 | 30 |
|
30 | 31 |
make inputs/.herbaria/import "$@" & |
31 | 32 |
sleep 5 # wait for make commands to scroll by |
... | ... | |
55 | 56 |
|
56 | 57 |
jobs="$(jobs -p)" |
57 | 58 |
(bin/waitpid $jobs; after_import) & |
58 |
|
|
59 |
unset import_source |
|
60 | 59 |
} |
61 | 60 |
import_all_main "$@" |
Also available in: Unified diff
import_all: Make $import_source a local var, so it will be automatically unset if the script is aborted