Revision 6946
Added by Aaron Marcuse-Kubitza about 12 years ago
import_all | ||
---|---|---|
8 | 8 |
cd "$selfDir/.." |
9 | 9 |
|
10 | 10 |
if test "${BASH_LINENO[1]}" = 0; then # was run without initial "." |
11 |
echo "Usage: . $self [vars...] (note initial \".\")"|fold -s >&2 |
|
11 |
echo "Usage: [version=...;] . $self [vars...] (note initial \".\")"\ |
|
12 |
|fold -s >&2 |
|
12 | 13 |
return 2 |
13 | 14 |
fi |
15 |
: ${version=$(make -s version)} |
|
16 |
export version |
|
14 | 17 |
|
15 | 18 |
make inputs/.TNRS/tnrs_accepted/reinstall |
16 | 19 |
make inputs/.TNRS/tnrs_other/reinstall |
17 | 20 |
|
21 |
make schemas/$version/install |
|
22 |
|
|
18 | 23 |
all=1; . "$selfDir/with_all" Source/import by_col=1 "$@" |
19 | 24 |
# note that this isn't affected by $import_source |
20 | 25 |
wait # wait for asynchronous commands |
Also available in: Unified diff
import_all: Run the import directly into a new, already-versioned public schema. This removes the need to manually rename the schema after import, and allows the backup commands to use the stored $version shell variable to refer to the last import.