Revision 6211
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/import_all | ||
---|---|---|
5 | 5 |
{ |
6 | 6 |
local self="${BASH_SOURCE[0]}" |
7 | 7 |
local selfDir="$(dirname -- "$self")" |
8 |
cd "$selfDir/.." |
|
8 | 9 |
|
9 | 10 |
if test "${BASH_LINENO[1]}" = 0; then # was run without initial "." |
10 | 11 |
echo "Usage: . $self [vars...] (note initial \".\")"|fold -s >&2 |
... | ... | |
32 | 33 |
} |
33 | 34 |
|
34 | 35 |
jobs="$(jobs -p)" |
35 |
("$selfDir/waitpid" $jobs; after_import) &
|
|
36 |
(bin/waitpid $jobs; after_import) &
|
|
36 | 37 |
} |
37 | 38 |
import_all_main "$@" |
Also available in: Unified diff
import_all: Change to main directory make targets are run from. Use relative paths to bin/ commands, which is possible now that the current dir is set.