root/bin/import_all @ 5172
1 |
#!/bin/bash
|
---|---|
2 |
# Imports all inputs at once
|
3 |
|
4 |
import_all_main ()
|
5 |
{
|
6 |
local self="${BASH_SOURCE[0]}" |
7 |
local selfDir="$(dirname -- "$self")" |
8 |
|
9 |
if test "${BASH_LINENO[1]}" = 0; then # was run without initial "." |
10 |
echo "Usage: . $self [vars...] (note initial \".\")"|fold -s >&2 |
11 |
return 2
|
12 |
fi
|
13 |
|
14 |
make inputs/.TNRS/cleanup
|
15 |
make inputs/.TNRS/import "$@" |
16 |
make inputs/.TNRS/tnrs/tnrs-remake & |
17 |
. "$selfDir/with_all" import "$@" |
18 |
}
|
19 |
import_all_main "$@" |