1 |
10397
|
aaronmk
|
#!/bin/bash -e
|
2 |
|
|
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/runscripts/import.run
|
3 |
|
|
.rel ../../../lib/runscripts/subdir.run
|
4 |
|
|
.rel ../../../lib/sh/db_make.sh
|
5 |
|
|
|
6 |
|
|
if self_not_included; then
|
7 |
|
|
|
8 |
|
|
: "${exports_dir:="$top_dir"}"
|
9 |
|
|
|
10 |
|
|
exports/make()
|
11 |
|
|
{
|
12 |
|
|
echo_func
|
13 |
10403
|
aaronmk
|
(schema=public.$schema
|
14 |
|
|
cols=(taxonverbatim_id taxonlabel_id taxonname); \
|
15 |
|
|
pg_export_tables_to_dir taxonverbatim
|
16 |
|
|
cols=(taxonlabel_id taxonomicname); pg_export_tables_to_dir taxonlabel
|
17 |
10399
|
aaronmk
|
)
|
18 |
|
|
(schema=TNRS
|
19 |
10408
|
aaronmk
|
cols=(Name_number Name_submitted Family_matched Name_matched
|
20 |
|
|
Taxonomic_status Accepted_scientific_name); pg_export_tables_to_dir tnrs
|
21 |
10399
|
aaronmk
|
)
|
22 |
10397
|
aaronmk
|
}
|
23 |
|
|
|
24 |
|
|
export_()
|
25 |
|
|
{
|
26 |
|
|
echo_func
|
27 |
|
|
exports/make
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
fi
|